diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2020-05-14 14:33:55 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-05-29 19:40:36 +0200 |
commit | fc54db32652bc830fba002da19c2ba9ba4508ca5 (patch) | |
tree | ed93473044e38f82848df906c9596eb098eac2bf | |
parent | 9d24f293e754da8ed41e1aab7406420bc59a9731 (diff) | |
download | ffmpeg-fc54db32652bc830fba002da19c2ba9ba4508ca5.tar.gz |
Use av_sat_sub64() when updating pts by duration.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/oggparsetheora.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index 87a676fe48..c481a79d4b 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -191,7 +191,7 @@ static int theora_packet(AVFormatContext *s, int idx) pts = theora_gptopts(s, idx, os->granule, NULL); if (pts != AV_NOPTS_VALUE) - pts -= duration; + pts = av_sat_sub64(pts, duration); os->lastpts = os->lastdts = pts; if(s->streams[idx]->start_time == AV_NOPTS_VALUE) { s->streams[idx]->start_time = os->lastpts; |