h264pred: assert that depth is supported
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jul 2012 01:21:24 +0000 (03:21 +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/h264pred.c

index a174b4c..9943d93 100644 (file)
@@ -25,6 +25,7 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
+#include "libavutil/avassert.h"
 #include "h264pred.h"
 
 #define BIT_DEPTH 8
@@ -528,6 +529,7 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co
             H264_PRED(10)
             break;
         default:
+            av_assert0(bit_depth<=8);
             H264_PRED(8)
             break;
     }