mirror of https://git.ffmpeg.org/ffmpeg.git
swresample/resample: do not rebuild filter when sample_delta is zero
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
This commit is contained in:
parent
83a75bf6c3
commit
01ebb57c03
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue