diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-24 09:33:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-28 06:29:58 +0200 |
commit | 40494460f51541530d8ce02ffee88b75d503e33d (patch) | |
tree | 3fc2ac4c70290d807b38aa20e90f11a539cb8160 | |
parent | edea15657981ac85baa058f6cdb5588171349b83 (diff) | |
download | ffmpeg-40494460f51541530d8ce02ffee88b75d503e33d.tar.gz |
avformat/smacker: Set audio duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavformat/smacker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c index 5507e7c169..4ab150a6f0 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -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; } |