[FFmpeg-cvslog] adx parser: set duration

Justin Ruggles git at videolan.org
Tue Feb 21 05:29:42 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Jan 12 23:43:31 2012 -0500| [41ac9bb253c371e95abc854786334c857bbe4065] | committer: Justin Ruggles

adx parser: set duration

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41ac9bb253c371e95abc854786334c857bbe4065
---

 libavcodec/adx_parser.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/adx_parser.c b/libavcodec/adx_parser.c
index de3b1b0..8dc87fc 100644
--- a/libavcodec/adx_parser.c
+++ b/libavcodec/adx_parser.c
@@ -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;



More information about the ffmpeg-cvslog mailing list