mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-31 20:02:07 +00:00
mpegaudio_parser: be less picky on the start position
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2d16394f97
commit
b37dfe181c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user