]> git.sesse.net Git - ffmpeg/commitdiff
thp: set duration
authorPiotr Bandurski <ami_stuff@o2.pl>
Sun, 16 Dec 2012 10:27:54 +0000 (10:27 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 16 Dec 2012 10:27:54 +0000 (10:27 +0000)
libavformat/thp.c

index 44634845fa16e0d9fe229e844db0a37d174c5d23..3717b8f12c53e88cf7d65ee71809ec8abd8a8ff4 100644 (file)
@@ -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;