summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-18 21:57:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-18 21:57:32 +0000
commit40a3105d46587151d822bc7d65276e4c36ca6c6b (patch)
tree1264d5afdb76a136f9801445df4b9630f71889bd /libavcodec/wmadec.c
parent2c492e94fc9d8a5e998b25f4d0390c95f2d4674f (diff)
segfault fix
Originally committed as revision 2714 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 15b15f23f0..25498c4d28 100644
--- 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);