Commit c5371f77 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudidec: 10l forgot buf_size

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 43bc5cf9
......@@ -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;
......
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