mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
9d24f293e7
commit
fc54db3265
@ -191,7 +191,7 @@ static int theora_packet(AVFormatContext *s, int idx)
|
|||||||
|
|
||||||
pts = theora_gptopts(s, idx, os->granule, NULL);
|
pts = theora_gptopts(s, idx, os->granule, NULL);
|
||||||
if (pts != AV_NOPTS_VALUE)
|
if (pts != AV_NOPTS_VALUE)
|
||||||
pts -= duration;
|
pts = av_sat_sub64(pts, duration);
|
||||||
os->lastpts = os->lastdts = pts;
|
os->lastpts = os->lastdts = pts;
|
||||||
if(s->streams[idx]->start_time == AV_NOPTS_VALUE) {
|
if(s->streams[idx]->start_time == AV_NOPTS_VALUE) {
|
||||||
s->streams[idx]->start_time = os->lastpts;
|
s->streams[idx]->start_time = os->lastpts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user