mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue