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>
This commit is contained in:
parent
5a9b952201
commit
6776a8f189
@ -66,6 +66,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
|
||||
|
||||
ret = avpriv_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate);
|
||||
if (ret < 4) {
|
||||
if (i > 4)
|
||||
s->header_count = -2;
|
||||
} else {
|
||||
if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header)
|
||||
|
Loading…
Reference in New Issue
Block a user