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,7 +66,8 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
|
|||||||
|
|
||||||
ret = avpriv_mpa_decode_header(avctx, state, &sr, &channels, &frame_size, &bit_rate);
|
ret = avpriv_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;
|
||||||
|
Loading…
Reference in New Issue
Block a user