summaryrefslogtreecommitdiff
path: root/src/combined/ffmpeg
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/ffmpeg')
-rw-r--r--src/combined/ffmpeg/demux_avformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/combined/ffmpeg/demux_avformat.c b/src/combined/ffmpeg/demux_avformat.c
index c929a0390..d0bd8175c 100644
--- a/src/combined/ffmpeg/demux_avformat.c
+++ b/src/combined/ffmpeg/demux_avformat.c
@@ -271,7 +271,7 @@ typedef struct {
static void check_newpts(avformat_demux_plugin_t *this, int64_t pts) {
int64_t diff = this->last_pts - pts;
- if (this->seek_flag || this->send_newpts || (this->last_pts && abs(diff) > WRAP_THRESHOLD)) {
+ if (this->seek_flag || this->send_newpts || (this->last_pts && llabs(diff) > WRAP_THRESHOLD)) {
_x_demux_control_newpts(this->stream, pts, this->seek_flag);
this->send_newpts = 0;