summaryrefslogtreecommitdiff
path: root/libavcodec/libdiracdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/libdiracdec.c')
-rw-r--r--libavcodec/libdiracdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libdiracdec.c b/libavcodec/libdiracdec.c
index 9050f8829c..d78893dbf2 100644
--- a/libavcodec/libdiracdec.c
+++ b/libavcodec/libdiracdec.c
@@ -141,7 +141,7 @@ static int libdirac_decode_frame(AVCodecContext *avccontext,
avccontext->height);
/* allocate output buffer */
- if (p_dirac_params->p_out_frame_buf == NULL)
+ if (!p_dirac_params->p_out_frame_buf)
p_dirac_params->p_out_frame_buf = av_malloc (pict_size);
buffer[0] = p_dirac_params->p_out_frame_buf;
buffer[1] = p_dirac_params->p_out_frame_buf +