diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-01-04 11:14:51 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-15 09:41:08 +0100 |
commit | fbd1f7639d0142c391bec85d1d840c835210843f (patch) | |
tree | 50d65bde8b953bb48f9279e8f7e8c2ae053d515c /libavfilter | |
parent | e0b164576f7467b7b1127c18175e215dc1df011f (diff) | |
download | ffmpeg-streaming-fbd1f7639d0142c391bec85d1d840c835210843f.zip ffmpeg-streaming-fbd1f7639d0142c391bec85d1d840c835210843f.tar.gz |
af_asyncts: Use llabs instead of labs for 64-bit variable
libavfilter/af_asyncts.c:212:9: warning: absolute value function 'labs' given an argument of type 'int64_t' (aka 'long long') but has parameter of type 'long' which may cause truncation of value [-Wabsolute-value]
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_asyncts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index e662c84..862b7a8 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -209,7 +209,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) delta = pts - s->pts - get_delay(s); out_size = avresample_available(s->avr); - if (labs(delta) > s->min_delta || + if (llabs(delta) > s->min_delta || (s->first_frame && delta && s->first_pts != AV_NOPTS_VALUE)) { av_log(ctx, AV_LOG_VERBOSE, "Discontinuity - %"PRId64" samples.\n", delta); out_size = av_clipl_int32((int64_t)out_size + delta); |