aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-24 09:33:31 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-28 06:29:58 +0200
commit40494460f51541530d8ce02ffee88b75d503e33d (patch)
tree3fc2ac4c70290d807b38aa20e90f11a539cb8160
parentedea15657981ac85baa058f6cdb5588171349b83 (diff)
downloadffmpeg-40494460f51541530d8ce02ffee88b75d503e33d.tar.gz
avformat/smacker: Set audio duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/smacker.c3
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;
}