Commit 40a3105d authored by Michael Niedermayer's avatar Michael Niedermayer

segfault fix

Originally committed as revision 2714 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2c492e94
...@@ -1187,6 +1187,11 @@ static int wma_decode_superframe(AVCodecContext *avctx, ...@@ -1187,6 +1187,11 @@ static int wma_decode_superframe(AVCodecContext *avctx,
tprintf("***decode_superframe:\n"); tprintf("***decode_superframe:\n");
if(buf_size==0){
s->last_superframe_len = 0;
return 0;
}
samples = data; samples = data;
init_get_bits(&s->gb, buf, buf_size*8); init_get_bits(&s->gb, buf, buf_size*8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment