diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-12-12 13:26:57 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-12-13 13:02:21 -0500 |
commit | 8083332c2de9ee189f96844ff4c2d9be1844116f (patch) | |
tree | 4d08fd285379f946532494085631b4c906e29045 /libavfilter/af_asyncts.c | |
parent | f266486b2e71d2965a19a505e83ead3cc1b198e0 (diff) | |
download | ffmpeg-8083332c2de9ee189f96844ff4c2d9be1844116f.tar.gz |
asyncts: use clipped delta value when setting resample compensation
The max_comp option is supposed to limit maximum compensation, but
currently the clipped value is not actually used.
Diffstat (limited to 'libavfilter/af_asyncts.c')
-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 67f3c4fdde..087692e0d6 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -197,7 +197,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *buf) if (s->resample) { int comp = av_clip(delta, -s->max_comp, s->max_comp); av_log(ctx, AV_LOG_VERBOSE, "Compensating %d samples per second.\n", comp); - avresample_set_compensation(s->avr, delta, inlink->sample_rate); + avresample_set_compensation(s->avr, comp, inlink->sample_rate); } delta = 0; } |