[FFmpeg-cvslog] siff: set duration

Piotr Bandurski git at videolan.org
Mon Dec 17 13:42:55 CET 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Sun Dec 16 16:03:16 2012 +0100| [0f450ac575b1c1b9d92f139d67f7c83552b392d0] | committer: Michael Niedermayer

siff: set duration

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/siff.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/siff.c b/libavformat/siff.c
index 6625180..c8b68ab 100644
--- a/libavformat/siff.c
+++ b/libavformat/siff.c
@@ -128,6 +128,8 @@ static int siff_parse_vbv1(AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
     st->codec->width      = width;
     st->codec->height     = height;
     st->codec->pix_fmt    = AV_PIX_FMT_PAL8;
+    st->nb_frames         =
+    st->duration          = c->frames;
     avpriv_set_pts_info(st, 16, 1, 12);
 
     c->cur_frame = 0;



More information about the ffmpeg-cvslog mailing list