diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-12-16 16:03:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-17 13:34:30 +0100 |
commit | 0f450ac575b1c1b9d92f139d67f7c83552b392d0 (patch) | |
tree | 0c1c1f66c8f828206a5f2b02305bfa74139566af /libavformat/siff.c | |
parent | fb9d58509c98af29f8933a575c357d20a66dbce5 (diff) | |
download | ffmpeg-0f450ac575b1c1b9d92f139d67f7c83552b392d0.tar.gz |
siff: set duration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/siff.c')
-rw-r--r-- | libavformat/siff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/siff.c b/libavformat/siff.c index 6625180ee5..c8b68abe30 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; |