aboutsummaryrefslogtreecommitdiff
path: root/libavformat/smacker.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt2020-07-24 09:33:31 +0200
committerAndreas Rheinhardt2020-07-28 06:29:58 +0200
commit40494460f51541530d8ce02ffee88b75d503e33d (patch)
tree3fc2ac4c70290d807b38aa20e90f11a539cb8160 /libavformat/smacker.c
parentedea15657981ac85baa058f6cdb5588171349b83 (diff)
avformat/smacker: Set audio duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/smacker.c')
-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;
}