[FFmpeg-cvslog] lclenc: switch to av_assert

Michael Niedermayer git at videolan.org
Thu Jul 12 23:22:35 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 12 23:18:48 2012 +0200| [f9c823df13f47d285ed0bd406906e138df4e8ae1] | committer: Michael Niedermayer

lclenc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9c823df13f47d285ed0bd406906e138df4e8ae1
---

 libavcodec/lclenc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index 16976ea..25706f6 100644
--- a/libavcodec/lclenc.c
+++ b/libavcodec/lclenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list