diff options
-rw-r--r-- | libswresample/resample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index d3fe1a7479..fb9da7c354 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -142,7 +142,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap break; case AV_SAMPLE_FMT_S32P: for(i=0;i<tap_count;i++) - ((int32_t*)filter)[ph * alloc + i] = av_clip(lrintf(tab[i] * scale / norm), INT32_MIN, INT32_MAX); + ((int32_t*)filter)[ph * alloc + i] = av_clipl_int32(llrint(tab[i] * scale / norm)); break; case AV_SAMPLE_FMT_FLTP: for(i=0;i<tap_count;i++) |