diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-03 03:21:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-03 03:31:06 +0200 |
commit | 6671c40038d2e7060acdadf5f7d4d73ba3e5090f (patch) | |
tree | 913165baa8436975655d1788d7a15c548e6c8109 /libavcodec | |
parent | 9c995fe19afe694026c589c5fba3239751cc2471 (diff) | |
download | ffmpeg-6671c40038d2e7060acdadf5f7d4d73ba3e5090f.tar.gz |
h264pred: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264pred.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264pred.c b/libavcodec/h264pred.c index a174b4ca3c..9943d9367e 100644 --- a/libavcodec/h264pred.c +++ b/libavcodec/h264pred.c @@ -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; } |