diff --git a/libavcodec/h264dsp.c b/libavcodec/h264dsp.c index bd35aa3065..6e329f2536 100644 --- a/libavcodec/h264dsp.c +++ b/libavcodec/h264dsp.c @@ -26,6 +26,7 @@ */ #include +#include "libavutil/avassert.h" #include "avcodec.h" #include "h264dsp.h" @@ -107,6 +108,7 @@ void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_fo H264_DSP(10); break; default: + av_assert0(bit_depth<=8); H264_DSP(8); break; }