Commit 5a9b9522 authored by Justin Ruggles's avatar Justin Ruggles

thp: set audio packet durations

parent 5602a464
...@@ -181,6 +181,9 @@ static int thp_read_packet(AVFormatContext *s, ...@@ -181,6 +181,9 @@ static int thp_read_packet(AVFormatContext *s,
} }
pkt->stream_index = thp->audio_stream_index; pkt->stream_index = thp->audio_stream_index;
if (thp->audiosize >= 8)
pkt->duration = AV_RB32(&pkt->data[4]);
thp->audiosize = 0; thp->audiosize = 0;
thp->frame++; thp->frame++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment