jv demux: set video stream duration
authorPaul B Mahol <onemda@gmail.com>
Wed, 14 Mar 2012 03:14:01 +0000 (03:14 +0000)
committerJanne Grunau <janne-libav@jannau.net>
Wed, 14 Mar 2012 14:34:50 +0000 (15:34 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavformat/jvdec.c

index c42e302..567f462 100644 (file)
@@ -79,6 +79,7 @@ static int read_header(AVFormatContext *s)
     vst->codec->codec_tag   = 0; /* no fourcc */
     vst->codec->width       = avio_rl16(pb);
     vst->codec->height      = avio_rl16(pb);
+    vst->duration           =
     vst->nb_frames          =
     ast->nb_index_entries   = avio_rl16(pb);
     avpriv_set_pts_info(vst, 64, avio_rl16(pb), 1000);