1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 09:31:06 +02:00

mpegaudiodec: skip initial zeros.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-19 22:15:21 +02:00
parent 040a796dab
commit 43bc5cf9f4

View File

@ -1637,6 +1637,9 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr,
uint32_t header;
int out_size;
while(buf_size && !*buf)
buf++;
if (buf_size < HEADER_SIZE)
return AVERROR_INVALIDDATA;