Commit d30ee5ef authored by Alexander Kojevnikov's avatar Alexander Kojevnikov Committed by Michael Niedermayer

mpegaudio_parser: Don't ignore information from the first frame

Signed-off-by: 's avatarAlexander Kojevnikov <alexander@kojevnikov.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 60dbf2ef
......@@ -75,6 +75,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
if((state&SAME_HEADER_MASK) != (s->header&SAME_HEADER_MASK) && s->header)
s->header_count= -3;
s->header= state;
s->header_count++;
s->frame_size = ret-4;
if (s->header_count > 0) {
......@@ -86,7 +87,6 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
avctx->bit_rate += (bit_rate - avctx->bit_rate) / s->header_count;
}
}
s->header_count++;
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment