dsputil: assert that depth is supported
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jul 2012 01:19:55 +0000 (03:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jul 2012 01:31:06 +0000 (03:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dsputil.c

index 442b900..9b32dff 100644 (file)
@@ -3148,6 +3148,7 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
         }
         break;
     default:
+        av_assert0(avctx->bits_per_raw_sample<=8 || avctx->codec_type != AVMEDIA_TYPE_VIDEO);
         BIT_DEPTH_FUNCS(8, _16);
         break;
     }