Commit 43bc5cf9 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudiodec: skip initial zeros.

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