diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-30 14:24:53 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-02 03:37:26 +0200 |
commit | 711f14080c538484432f406917074bda6d6b48ce (patch) | |
tree | 446f47b56cfc29c64d23a99fd55d761b0f8a7393 | |
parent | 96755c7332621a44ff2f0fcf17e88f97b95c0e4d (diff) | |
download | ffmpeg-711f14080c538484432f406917074bda6d6b48ce.tar.gz |
avcodec/cook: Don't use 0 for NULL
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavcodec/cook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 361baeb3ac..d1e7e6dd31 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -247,7 +247,7 @@ static av_cold int init_cook_mlt(COOKContext *q) int j, ret; int mlt_size = q->samples_per_channel; - if ((q->mlt_window = av_malloc_array(mlt_size, sizeof(*q->mlt_window))) == 0) + if (!(q->mlt_window = av_malloc_array(mlt_size, sizeof(*q->mlt_window)))) return AVERROR(ENOMEM); /* Initialize the MLT window: simple sine window. */ |