From d0bdcbcb28a7536de88cffa00a71be322d84b5d7 Mon Sep 17 00:00:00 2001 From: Piotr Bandurski Date: Sun, 16 Dec 2012 10:27:54 +0000 Subject: [PATCH] thp: set duration --- libavformat/thp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/thp.c b/libavformat/thp.c index 44634845fa..3717b8f12c 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -110,6 +110,8 @@ static int thp_read_header(AVFormatContext *s) st->codec->width = avio_rb32(pb); st->codec->height = avio_rb32(pb); st->codec->sample_rate = av_q2d(thp->fps); + st->nb_frames = + st->duration = thp->framecnt; thp->vst = st; thp->video_stream_index = st->index;