mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
thp: set audio packet durations
This commit is contained in:
parent
5602a464c9
commit
5a9b952201
1 changed files with 3 additions and 0 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue