aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264dsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 03:20:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-03 03:31:06 +0200
commit9c995fe19afe694026c589c5fba3239751cc2471 (patch)
tree496fe1dd2f4932c4980580432ad1a744469c44c1 /libavcodec/h264dsp.c
parent5a1bbb3af0556d8d126b3f4003971f436c500e87 (diff)
downloadffmpeg-9c995fe19afe694026c589c5fba3239751cc2471.tar.gz
h264dsp: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264dsp.c')
-rw-r--r--libavcodec/h264dsp.c2
1 files changed, 2 insertions, 0 deletions
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 <stdint.h>
+#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;
}