1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat/smacker: Set audio duration

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt
2020-07-24 09:33:31 +02:00
parent edea156579
commit 40494460f5

View File

@@ -315,7 +315,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
pkt->stream_index = smk->indexes[i];
pkt->pts = smk->aud_pts[i];
smk->aud_pts[i] += AV_RL32(pkt->data);
pkt->duration = AV_RL32(pkt->data);
smk->aud_pts[i] += pkt->duration;
smk->next_audio_index = i + 1;
return 0;
}