]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/resample2.c
const
[ffmpeg] / libavcodec / resample2.c
index ffd6fc71c637475cd7e73f888901198968091e83..da1443d98f900ab505470b91e7021edb026cd008 100644 (file)
@@ -279,7 +279,7 @@ int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int
         }
 
 #ifdef CONFIG_RESAMPLE_AUDIOPHILE_KIDDY_MODE
-        dst[dst_index] = av_clip(lrintf(val), -32768, 32767);
+        dst[dst_index] = av_clip_int16(lrintf(val));
 #else
         val = (val + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT;
         dst[dst_index] = (unsigned)(val + 32768) > 65535 ? (val>>31) ^ 32767 : val;