diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
commit | 7c809dc3e24a321ed0b1fc3a34442127b762f801 (patch) | |
tree | 73039cb645ad3ffeacdc54f779dc90a3444b2ad5 /libavcodec/libdiracdec.c | |
parent | cea0b5272d82c19c86dfcc3c61e097f4df9a4c2d (diff) | |
download | ffmpeg-7c809dc3e24a321ed0b1fc3a34442127b762f801.tar.gz |
Simplify 'if' condition statements.
Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'.
Originally committed as revision 19647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libdiracdec.c')
-rw-r--r-- | libavcodec/libdiracdec.c | 2 |
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 + |