]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sh4/dsputil_sh4.c
Merge remote branch 'qatar/master'
[ffmpeg] / libavcodec / sh4 / dsputil_sh4.c
index ec06e249c7485275f101bd992bc6b87b147cf9a2..219bb4c35378eabc88bee42385d392639fd6e6c3 100644 (file)
@@ -92,8 +92,10 @@ static void idct_add(uint8_t *dest, int line_size, DCTELEM *block)
 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx)
 {
         const int idct_algo= avctx->idct_algo;
+        const int h264_high_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
         dsputil_init_align(c,avctx);
 
+        if (!h264_high_depth)
         c->clear_blocks = clear_blocks_sh4;
         if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_SH4){
                 c->idct_put = idct_put;