mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/cook: Don't use 0 for NULL
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
96755c7332
commit
711f14080c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user