projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c492e9
)
segfault fix
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 18 Jan 2004 21:57:32 +0000
(21:57 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 18 Jan 2004 21:57:32 +0000
(21:57 +0000)
Originally committed as revision 2714 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmadec.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmadec.c
b/libavcodec/wmadec.c
index
15b15f2
..
25498c4
100644
(file)
--- a/
libavcodec/wmadec.c
+++ b/
libavcodec/wmadec.c
@@
-1187,6
+1187,11
@@
static int wma_decode_superframe(AVCodecContext *avctx,
tprintf("***decode_superframe:\n");
+ if(buf_size==0){
+ s->last_superframe_len = 0;
+ return 0;
+ }
+
samples = data;
init_get_bits(&s->gb, buf, buf_size*8);