diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-21 02:49:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-21 03:07:11 +0200 |
commit | b37dfe181cc34ea76155cf449d168c385f32f061 (patch) | |
tree | 404b10fb2f3b2d1d99da21ee6e52f0fe12f9b095 | |
parent | 2d16394f972dca8cc5e5b5bf9ab0b343a6239b76 (diff) | |
download | ffmpeg-b37dfe181cc34ea76155cf449d168c385f32f061.tar.gz |
mpegaudio_parser: be less picky on the start position
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpegaudio_parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index 94a286fb14..9c19d6ffdb 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -66,7 +66,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1, ret = ff_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate); if (ret < 4) { - s->header_count= -2; + if(i > 4) + s->header_count= -2; } else { if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header) s->header_count= -3; |