simple_idct: add 10-bit version
[ffmpeg.git] / libavcodec / arm / dsputil_init_arm.c
index 777a2f954e7b78256666120c132db66c229cb79a..5b4b24a43edc89b93c61eb0e1f1c994ca3590bc0 100644 (file)
@@ -80,7 +80,7 @@ void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx)
     ff_put_pixels_clamped = c->put_pixels_clamped;
     ff_add_pixels_clamped = c->add_pixels_clamped;
 
-    if (!avctx->lowres) {
+    if (!avctx->lowres && avctx->bits_per_raw_sample <= 8) {
         if(avctx->idct_algo == FF_IDCT_AUTO ||
            avctx->idct_algo == FF_IDCT_ARM){
             c->idct_put              = j_rev_dct_arm_put;