comparison targa.c @ 10184:9a577b684548 libavcodec

Remove useless code causing crash in Targa decoder
author kostya
date Thu, 17 Sep 2009 05:01:27 +0000
parents 266bf83f634d
children 8a4984c5cacc
comparison
equal deleted inserted replaced
10183:f2d62b685d49 10184:9a577b684548
187 g = *buf++; 187 g = *buf++;
188 b = *buf++; 188 b = *buf++;
189 *pal++ = (b << 16) | (g << 8) | r; 189 *pal++ = (b << 16) | (g << 8) | r;
190 } 190 }
191 p->palette_has_changed = 1; 191 p->palette_has_changed = 1;
192 avctx->palctrl->palette_changed = 0;
193 } 192 }
194 } 193 }
195 if((compr & (~TGA_RLE)) == TGA_NODATA) 194 if((compr & (~TGA_RLE)) == TGA_NODATA)
196 memset(p->data[0], 0, p->linesize[0] * s->height); 195 memset(p->data[0], 0, p->linesize[0] * s->height);
197 else{ 196 else{