lclenc: switch to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Jul 2012 21:18:48 +0000 (23:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Jul 2012 21:18:48 +0000 (23:18 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lclenc.c

index 16976ea..25706f6 100644 (file)
@@ -41,6 +41,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "libavutil/avassert.h"
 #include "avcodec.h"
 #include "internal.h"
 #include "lcl.h"
@@ -132,7 +133,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
 
     c->avctx= avctx;
 
-    assert(avctx->width && avctx->height);
+    av_assert0(avctx->width && avctx->height);
 
     avctx->extradata= av_mallocz(8);
     avctx->coded_frame= &c->pic;