comparison sgienc.c @ 10339:a352df49a10f libavcodec

Use "!exp" instead of "exp == NULL" in if condition.
author diego
date Thu, 01 Oct 2009 09:13:21 +0000
parents 118f18919f4b
children 5f263438d11b
comparison
equal deleted inserted replaced
10338:118f18919f4b 10339:a352df49a10f
115 115
116 /* Skip RLE length table. */ 116 /* Skip RLE length table. */
117 buf += tablesize; 117 buf += tablesize;
118 118
119 /* Make an intermediate consecutive buffer. */ 119 /* Make an intermediate consecutive buffer. */
120 if ((encode_buf = av_malloc(width)) == NULL) 120 if (!(encode_buf = av_malloc(width)))
121 return -1; 121 return -1;
122 122
123 for (z = 0; z < depth; z++) { 123 for (z = 0; z < depth; z++) {
124 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z; 124 in_buf = p->data[0] + p->linesize[0] * (height - 1) + z;
125 125