aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2024-06-08 18:45:13 +1000
committerPeter Ross <pross@xvid.org>2024-11-21 19:41:12 +1100
commitac2442f0a7a97d41089fffe51cc831913799c89b (patch)
tree99e7aa6b7cbd8c0f9bc5e89b784927db4709f02b
parent3528bfed450842a991df6e076fe72d4c2eee6432 (diff)
downloadffmpeg-ac2442f0a7a97d41089fffe51cc831913799c89b.tar.gz
avcodec/mm: set audio pts proportionally to audio offset
-rw-r--r--libavformat/mm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c
index e377ed4fbb..a99feae6e9 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -180,7 +180,8 @@ static int read_packet(AVFormatContext *s,
if ((ret = av_get_packet(s->pb, pkt, length)) < 0)
return ret;
pkt->stream_index = 1;
- pkt->pts = mm->audio_pts++;
+ pkt->pts = mm->audio_pts;
+ mm->audio_pts += length;
return 0;
default :