You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
mpegaudidec: 10l forgot buf_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -1637,8 +1637,10 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr,
|
|||||||
uint32_t header;
|
uint32_t header;
|
||||||
int out_size;
|
int out_size;
|
||||||
|
|
||||||
while(buf_size && !*buf)
|
while(buf_size && !*buf){
|
||||||
buf++;
|
buf++;
|
||||||
|
buf_size--;
|
||||||
|
}
|
||||||
|
|
||||||
if (buf_size < HEADER_SIZE)
|
if (buf_size < HEADER_SIZE)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
Reference in New Issue
Block a user