OSDN Git Service

mpegaudio parser: set duration instead of frame_size
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 13 Jan 2012 02:05:08 +0000 (21:05 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 20 Feb 2012 20:08:40 +0000 (15:08 -0500)
libavcodec/mpegaudio_parser.c

index c6d670d..5fd9037 100644 (file)
@@ -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;