diff options
-rw-r--r-- | libavcodec/lclenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c index 16976ea1ec..25706f6897 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; |