diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-16 11:49:51 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-03 17:03:26 -0500 |
commit | 0b8b7db01b30248430b2dcc29c6e904df47a991e (patch) | |
tree | 98e62fc9467fd1d34a0a40ac65beabe936888d09 /libavcodec/mpegaudio_parser.c | |
parent | 6776a8f189d79c4a3ee6b8a164bb12238d7cbd42 (diff) | |
download | ffmpeg-0b8b7db01b30248430b2dcc29c6e904df47a991e.tar.gz |
mpegaudio_parser: do not ignore information from the first parsed frame
Update some demuxing and seeking fate tests.
Diffstat (limited to 'libavcodec/mpegaudio_parser.c')
-rw-r--r-- | libavcodec/mpegaudio_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index 3748f5d53e..017d6e1cda 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -75,7 +75,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, s->header_count++; s->frame_size = ret-4; - if(s->header_count > 1){ + if (s->header_count > 0) { avctx->sample_rate= sr; avctx->channels = channels; s1->duration = frame_size; |