aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAlexander Kojevnikov <alexander@kojevnikov.com>2013-03-06 21:58:59 -0800
committerMichael Niedermayer <michaelni@gmx.at>2013-03-07 23:07:04 +0100
commitd30ee5ef59d365cf356694cc25b8099c97618a11 (patch)
treef1c36eed0f0eb4dbb36aef142746c6636f14c930 /libavcodec
parent60dbf2eff92f8aa4683b6dcaba9e694890258ade (diff)
downloadffmpeg-d30ee5ef59d365cf356694cc25b8099c97618a11.tar.gz
mpegaudio_parser: Don't ignore information from the first frame
Signed-off-by: Alexander Kojevnikov <alexander@kojevnikov.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegaudio_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index bb4d75c066..408193671f 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -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;
}
}