summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_yuv_frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_yuv_frames.c')
-rw-r--r--src/demuxers/demux_yuv_frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demuxers/demux_yuv_frames.c b/src/demuxers/demux_yuv_frames.c
index 78d5e079b..26ac5d65b 100644
--- a/src/demuxers/demux_yuv_frames.c
+++ b/src/demuxers/demux_yuv_frames.c
@@ -76,7 +76,7 @@ static int switch_buf(demux_yuv_frames_t *this , buf_element_t *buf){
if (this->seek_flag) {
this->seek_flag = 0;
_x_demux_control_newpts(this->stream, buf->pts, BUF_FLAG_SEEK);
- } else if (abs(this->last_pts - buf->pts) > WRAP_THRESHOLD) {
+ } else if (llabs(this->last_pts - buf->pts) > WRAP_THRESHOLD) {
_x_demux_control_newpts(this->stream, buf->pts, 0);
}