[FFmpeg-cvslog] swresample/resample: do not rebuild filter when sample_delta is zero
Muhammad Faiz
git at videolan.org
Sat Dec 3 20:35:20 EET 2016
ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Sat Dec 3 03:05:49 2016 +0700| [01ebb57c03abde89bca7bdbc552917efcb8f551d] | committer: Muhammad Faiz
swresample/resample: do not rebuild filter when sample_delta is zero
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01ebb57c03abde89bca7bdbc552917efcb8f551d
---
libswresample/resample.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswresample/resample.c b/libswresample/resample.c
index e65a57a..71dffb9 100644
--- a/libswresample/resample.c
+++ b/libswresample/resample.c
@@ -449,7 +449,7 @@ static int rebuild_filter_bank_with_compensation(ResampleContext *c)
static int set_compensation(ResampleContext *c, int sample_delta, int compensation_distance){
int ret;
- if (compensation_distance) {
+ if (compensation_distance && sample_delta) {
ret = rebuild_filter_bank_with_compensation(c);
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list