adx parser: set duration
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 13 Jan 2012 04:43:31 +0000 (23:43 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 20 Feb 2012 20:08:41 +0000 (15:08 -0500)
libavcodec/adx_parser.c

index de3b1b0..8dc87fc 100644 (file)
@@ -80,6 +80,9 @@ static int adx_parse(AVCodecParserContext *s1,
         *poutbuf_size = 0;
         return buf_size;
     }
+
+    s1->duration = BLOCK_SAMPLES;
+
     *poutbuf = buf;
     *poutbuf_size = buf_size;
     return next;