Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2012-12-16 14:27:54 +0400
committerPaul B Mahol <onemda@gmail.com>2012-12-16 14:27:54 +0400
commitd0bdcbcb28a7536de88cffa00a71be322d84b5d7 (patch)
tree3dfedc6ec4e1a36a7f0c478eca58cea975e9f602 /libavformat/thp.c
parent013b700771ec5eabc6687fc3813c1c9f341bc1e8 (diff)
thp: set duration
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r--libavformat/thp.c2
1 files changed, 2 insertions, 0 deletions
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;