Commit b37dfe18 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudio_parser: be less picky on the start position

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d16394f
...@@ -66,7 +66,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1, ...@@ -66,7 +66,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
ret = ff_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate); ret = ff_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate);
if (ret < 4) { if (ret < 4) {
s->header_count= -2; if(i > 4)
s->header_count= -2;
} else { } else {
if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header) if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header)
s->header_count= -3; s->header_count= -3;
......
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