siff: set duration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fb9d58509c
commit
0f450ac575
@ -128,6 +128,8 @@ static int siff_parse_vbv1(AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
|
|||||||
st->codec->width = width;
|
st->codec->width = width;
|
||||||
st->codec->height = height;
|
st->codec->height = height;
|
||||||
st->codec->pix_fmt = AV_PIX_FMT_PAL8;
|
st->codec->pix_fmt = AV_PIX_FMT_PAL8;
|
||||||
|
st->nb_frames =
|
||||||
|
st->duration = c->frames;
|
||||||
avpriv_set_pts_info(st, 16, 1, 12);
|
avpriv_set_pts_info(st, 16, 1, 12);
|
||||||
|
|
||||||
c->cur_frame = 0;
|
c->cur_frame = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user