Browse Source

segfault fix

Originally committed as revision 2714 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
40a3105d46
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/wmadec.c

+ 5
- 0
libavcodec/wmadec.c View File

@@ -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);


Loading…
Cancel
Save