From 5a9b952201e5fde03be619dc59bda10463abeefa Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 29 Feb 2012 18:08:46 -0500 Subject: thp: set audio packet durations --- libavformat/thp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/thp.c') diff --git a/libavformat/thp.c b/libavformat/thp.c index 731f5af968..5a1205eb9a 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -181,6 +181,9 @@ static int thp_read_packet(AVFormatContext *s, } pkt->stream_index = thp->audio_stream_index; + if (thp->audiosize >= 8) + pkt->duration = AV_RB32(&pkt->data[4]); + thp->audiosize = 0; thp->frame++; } -- cgit v1.2.3