summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264pred.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 03:21:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-03 03:31:06 +0200
commit6671c40038d2e7060acdadf5f7d4d73ba3e5090f (patch)
tree913165baa8436975655d1788d7a15c548e6c8109 /libavcodec/h264pred.c
parent9c995fe19afe694026c589c5fba3239751cc2471 (diff)
downloadffmpeg-streaming-6671c40038d2e7060acdadf5f7d4d73ba3e5090f.zip
ffmpeg-streaming-6671c40038d2e7060acdadf5f7d4d73ba3e5090f.tar.gz
h264pred: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264pred.c')
-rw-r--r--libavcodec/h264pred.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264pred.c b/libavcodec/h264pred.c
index a174b4c..9943d93 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;
}
OpenPOWER on IntegriCloud