Signed-off-by: Muhammad Faiz <[email protected]>
---
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;
--
2.5.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel