summaryrefslogtreecommitdiff
path: root/src/demuxers
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers')
-rw-r--r--src/demuxers/demux_matroska.c2
-rw-r--r--src/demuxers/demux_yuv_frames.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/demuxers/demux_matroska.c b/src/demuxers/demux_matroska.c
index d586b1ac9..ce81aa843 100644
--- a/src/demuxers/demux_matroska.c
+++ b/src/demuxers/demux_matroska.c
@@ -62,7 +62,7 @@ static void check_newpts (demux_matroska_t *this, int64_t pts,
diff = pts - track->last_pts;
- if (pts && (this->send_newpts || (track->last_pts && abs(diff)>WRAP_THRESHOLD)) ) {
+ if (pts && (this->send_newpts || (track->last_pts && llabs(diff)>WRAP_THRESHOLD)) ) {
int i;
lprintf ("sending newpts %" PRId64 ", diff %" PRId64 ", track %d\n", pts, diff, track->track_num);
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);
}