comparison 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
comparison
equal deleted inserted replaced
10054:8ab9fbad11b2 10055:fdb318d12314
139 pict_size = avpicture_get_size(avccontext->pix_fmt, 139 pict_size = avpicture_get_size(avccontext->pix_fmt,
140 avccontext->width, 140 avccontext->width,
141 avccontext->height); 141 avccontext->height);
142 142
143 /* allocate output buffer */ 143 /* allocate output buffer */
144 if (p_dirac_params->p_out_frame_buf == NULL) 144 if (!p_dirac_params->p_out_frame_buf)
145 p_dirac_params->p_out_frame_buf = av_malloc (pict_size); 145 p_dirac_params->p_out_frame_buf = av_malloc (pict_size);
146 buffer[0] = p_dirac_params->p_out_frame_buf; 146 buffer[0] = p_dirac_params->p_out_frame_buf;
147 buffer[1] = p_dirac_params->p_out_frame_buf + 147 buffer[1] = p_dirac_params->p_out_frame_buf +
148 pic.linesize[0] * avccontext->height; 148 pic.linesize[0] * avccontext->height;
149 buffer[2] = buffer[1] + 149 buffer[2] = buffer[1] +