X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fbit_depth_template.c;h=27e658ba75fffc4f2a36df292eb407390703eaf0;hb=369380e1c4c6fc9b0d9ff04ec23d46b252ba7110;hp=8fc826b7d2e18576e115fe2a4848f017fbc97294;hpb=ba42c852477e87f6e47a5587e8f7829c46c52032;p=ffmpeg diff --git a/libavcodec/bit_depth_template.c b/libavcodec/bit_depth_template.c index 8fc826b7d2e..27e658ba75f 100644 --- a/libavcodec/bit_depth_template.c +++ b/libavcodec/bit_depth_template.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "mathops.h" #include "rnd_avg.h" #ifndef BIT_DEPTH @@ -70,7 +71,7 @@ # define pixel4 uint32_t # define dctcoef int16_t -# define INIT_CLIP const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; +# define INIT_CLIP const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; # define no_rnd_avg_pixel4 no_rnd_avg32 # define rnd_avg_pixel4 rnd_avg32 # define AV_RN2P AV_RN16