comparison targa.c @ 9985:266bf83f634d libavcodec

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents 8f56bd47d2c8
children 9a577b684548
comparison
equal deleted inserted replaced
9984:32dfddd8992a 9985:266bf83f634d
197 else{ 197 else{
198 if(compr & TGA_RLE) 198 if(compr & TGA_RLE)
199 targa_decode_rle(avctx, s, buf, dst, avctx->width, avctx->height, stride, bpp); 199 targa_decode_rle(avctx, s, buf, dst, avctx->width, avctx->height, stride, bpp);
200 else{ 200 else{
201 for(y = 0; y < s->height; y++){ 201 for(y = 0; y < s->height; y++){
202 #ifdef WORDS_BIGENDIAN 202 #if HAVE_BIGENDIAN
203 if((s->bpp + 1) >> 3 == 2){ 203 if((s->bpp + 1) >> 3 == 2){
204 uint16_t *dst16 = (uint16_t*)dst; 204 uint16_t *dst16 = (uint16_t*)dst;
205 for(x = 0; x < s->width; x++) 205 for(x = 0; x < s->width; x++)
206 dst16[x] = AV_RL16(buf + x * 2); 206 dst16[x] = AV_RL16(buf + x * 2);
207 }else if((s->bpp + 1) >> 3 == 4){ 207 }else if((s->bpp + 1) >> 3 == 4){