diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-07-28 13:12:38 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-07-29 14:31:54 -0400 |
commit | be51e589cdf84d75e865cec31e722a36332a64f9 (patch) | |
tree | 45bee71f4d97663e236c255d92f15638549d7529 /libavfilter | |
parent | 70d71b58018e640a09a4d919993766a2050cef8d (diff) | |
download | ffmpeg-be51e589cdf84d75e865cec31e722a36332a64f9.tar.gz |
af_asyncts: avoid overflow in out_size with large delta values
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 5a12a6f6da..21850dd1d2 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -186,7 +186,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *buf) if (labs(delta) > s->min_delta) { av_log(ctx, AV_LOG_VERBOSE, "Discontinuity - %"PRId64" samples.\n", delta); - out_size += delta; + out_size = av_clipl_int32((int64_t)out_size + delta); } else { if (s->resample) { int comp = av_clip(delta, -s->max_comp, s->max_comp); |