[FFmpeg-cvslog] asyncts: use clipped delta value when setting resample compensation
Justin Ruggles
git at videolan.org
Fri Dec 14 13:56:12 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Dec 12 13:26:57 2012 -0500| [8083332c2de9ee189f96844ff4c2d9be1844116f] | committer: Justin Ruggles
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8083332c2de9ee189f96844ff4c2d9be1844116f
---
libavfilter/af_asyncts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c
index 67f3c4f..087692e 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;
}
More information about the ffmpeg-cvslog
mailing list