Browse Source

mpegaudidec: 10l forgot buf_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
c5371f775c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/mpegaudiodec.c

+ 3
- 1
libavcodec/mpegaudiodec.c View File

@@ -1637,8 +1637,10 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr,
uint32_t header;
int out_size;

while(buf_size && !*buf)
while(buf_size && !*buf){
buf++;
buf_size--;
}

if (buf_size < HEADER_SIZE)
return AVERROR_INVALIDDATA;


Loading…
Cancel
Save