summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudio_parser.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-12 21:05:08 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-20 15:08:40 -0500
commit7575ffac8a2da4c03a606f6a94286979d953dde5 (patch)
tree5a28b745264d3253185427171d905adc0606c1b6 /libavcodec/mpegaudio_parser.c
parent16e54ac7255d47e70ba9ba60d5ce5d0a0e44b223 (diff)
mpegaudio parser: set duration instead of frame_size
Diffstat (limited to 'libavcodec/mpegaudio_parser.c')
-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 c6d670de2a..5fd9037b53 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -77,7 +77,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
if(s->header_count > 1){
avctx->sample_rate= sr;
avctx->channels = channels;
- avctx->frame_size = frame_size;
+ s1->duration = frame_size;
avctx->bit_rate = bit_rate;
}
break;