summaryrefslogtreecommitdiff
path: root/src/combined
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2014-12-08 11:26:46 +0200
committerBrad Smith <brad@comstyle.com>2014-12-08 11:26:46 +0200
commit187869d6b5f7d997adbd3f2b200a4af180798c29 (patch)
tree989ee7d478b7747ddf7ad4b7392ee2fd910d2955 /src/combined
parentb51ea688142700821dac6f2f0a26946da770c2d1 (diff)
downloadxine-lib-187869d6b5f7d997adbd3f2b200a4af180798c29.tar.gz
xine-lib-187869d6b5f7d997adbd3f2b200a4af180798c29.tar.bz2
Use ffabs()
Fixes truncating timestamps
Diffstat (limited to 'src/combined')
-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;