Browse Source

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>
tags/n3.3
Muhammad Faiz 9 years ago
parent
commit
01ebb57c03
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswresample/resample.c

+ 1
- 1
libswresample/resample.c View File

@@ -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…
Cancel
Save