diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-12-16 10:27:54 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-16 10:27:54 +0000 |
commit | d0bdcbcb28a7536de88cffa00a71be322d84b5d7 (patch) | |
tree | 3dfedc6ec4e1a36a7f0c478eca58cea975e9f602 | |
parent | 013b700771ec5eabc6687fc3813c1c9f341bc1e8 (diff) | |
download | ffmpeg-d0bdcbcb28a7536de88cffa00a71be322d84b5d7.tar.gz |
thp: set duration
-rw-r--r-- | libavformat/thp.c | 2 |
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; |