Module: libav Branch: master Commit: 5f2c8315b3c1b28da0386fddb118ad6a0ed77a0c
Author: Paul B Mahol <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Thu Nov 5 12:04:53 2015 +0100 thp: set duration for audio stream too Signed-off-by: Paul B Mahol <[email protected]> --- libavformat/thp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/thp.c b/libavformat/thp.c index 18d4afe..27d7ab4 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -126,6 +126,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); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
