]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxa.c
error_resilience: initialize prev_* variables
[ffmpeg] / libavcodec / dxa.c
index fa0677d34ca5f76768081cbb7649f504fe0b4372..989fcb965bf73f3e3c39a2dcfe2f977a0aa50119 100644 (file)
@@ -309,7 +309,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     avctx->pix_fmt = AV_PIX_FMT_PAL8;
 
     c->dsize = avctx->width * avctx->height * 2;
-    if((c->decomp_buf = av_malloc(c->dsize)) == NULL) {
+    if (!(c->decomp_buf = av_malloc(c->dsize))) {
         av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
         return AVERROR(ENOMEM);
     }