[FFmpeg-cvslog] thp: set duration
Piotr Bandurski
git at videolan.org
Sun Dec 16 12:33:57 CET 2012
ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Sun Dec 16 10:27:54 2012 +0000| [d0bdcbcb28a7536de88cffa00a71be322d84b5d7] | committer: Paul B Mahol
thp: set duration
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0bdcbcb28a7536de88cffa00a71be322d84b5d7
---
libavformat/thp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 4463484..3717b8f 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;
More information about the ffmpeg-cvslog
mailing list