[FFmpeg-cvslog] h264pred: 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:21:24 2012 +0200| [6671c40038d2e7060acdadf5f7d4d73ba3e5090f] | committer: Michael Niedermayer

h264pred: 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=6671c40038d2e7060acdadf5f7d4d73ba3e5090f
---

 libavcodec/h264pred.c |    2 ++
 1 file changed, 2 insertions(+)

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 at 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;
     }



More information about the ffmpeg-cvslog mailing list