diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-21 02:49:20 +0200 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-03 17:03:26 -0500 |
commit | 6776a8f189d79c4a3ee6b8a164bb12238d7cbd42 (patch) | |
tree | 5aef86e9c6530f0135330beea48a6091aa691010 | |
parent | 5a9b952201e5fde03be619dc59bda10463abeefa (diff) | |
download | ffmpeg-6776a8f189d79c4a3ee6b8a164bb12238d7cbd42.tar.gz |
mpegaudio_parser: be less picky about the start position
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
-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 5fd9037b53..3748f5d53e 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -66,7 +66,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1, ret = avpriv_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; |