1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

thp: set audio packet durations

This commit is contained in:
Justin Ruggles 2012-02-29 18:08:46 -05:00
parent 5602a464c9
commit 5a9b952201

View File

@ -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++;
}