Mercurial > libavcodec.hg
diff libdiracdec.c @ 10055:fdb318d12314 libavcodec
Simplify 'if' condition statements.
Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'.
author | diego |
---|---|
date | Sat, 15 Aug 2009 11:02:50 +0000 |
parents | 54bc8a2727b0 |
children | 646065f63290 |
line wrap: on
line diff
--- a/libdiracdec.c Sat Aug 15 09:12:58 2009 +0000 +++ b/libdiracdec.c Sat Aug 15 11:02:50 2009 +0000 @@ -141,7 +141,7 @@ 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 +