From feeb3a92616310b5f79191b0ef3064712c40b7d3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 16 May 2016 05:10:21 +0200 Subject: swresample/resample: Fix division by 0 with tap_count=1 Signed-off-by: Michael Niedermayer --- libswresample/resample.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libswresample/resample.c') diff --git a/libswresample/resample.c b/libswresample/resample.c index 7888e570a3..d410432658 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -203,7 +203,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap case AV_SAMPLE_FMT_S16P: for(i=0;i