[FFmpeg-cvslog] h264dsp: assert that depth is supported
Michael Niedermayer
git at videolan.org
Tue Jul 3 04:08:15 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 3 03:20:51 2012 +0200| [9c995fe19afe694026c589c5fba3239751cc2471] | committer: Michael Niedermayer
h264dsp: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c995fe19afe694026c589c5fba3239751cc2471
---
libavcodec/h264dsp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/h264dsp.c b/libavcodec/h264dsp.c
index bd35aa3..6e329f2 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;
}
More information about the ffmpeg-cvslog
mailing list