diff options
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r-- | libavformat/thp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c index dc30fbaf70..e71cbc4bd4 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -184,6 +184,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++; } |