X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ftscc.c;fp=libavcodec%2Ftscc.c;h=86199342a9d5179504106fa148902b3141df2095;hb=f929ab0569ff31ed5a59b0b0adb7ce09df3fca39;hp=16d0770bf67b8956d0c78a26fefedfcee91a93a5;hpb=efd26bedec9a345a5960dbfcbaec888418f2d4e6;p=ffmpeg diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 16d0770bf67..86199342a9d 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -142,7 +142,7 @@ static av_cold int decode_init(AVCodecContext *avctx) /* Allocate decompression buffer */ if (c->decomp_size) { - if ((c->decomp_buf = av_malloc(c->decomp_size)) == NULL) { + if (!(c->decomp_buf = av_malloc(c->decomp_size))) { av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); return AVERROR(ENOMEM); }