[FFmpeg-cvslog] avformat/thp: set duration for audio stream too

Paul B Mahol git at videolan.org
Mon Oct 26 10:32:16 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Oct 25 23:07:21 2015 +0100| [ff1e44b01ef7a5915bb1c1733f47eb5c3c88738b] | committer: Paul B Mahol

avformat/thp: set duration for audio stream too

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff1e44b01ef7a5915bb1c1733f47eb5c3c88738b
---

 libavformat/thp.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/thp.c b/libavformat/thp.c
index 727fb50..5a748b0 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -135,6 +135,7 @@ static int thp_read_header(AVFormatContext *s)
             st->codec->codec_tag = 0;  /* no fourcc */
             st->codec->channels    = avio_rb32(pb); /* numChannels.  */
             st->codec->sample_rate = avio_rb32(pb); /* Frequency.  */
+            st->duration           = avio_rb32(pb);
 
             avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
 



More information about the ffmpeg-cvslog mailing list