comparison ptx.c @ 9985:266bf83f634d libavcodec

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents 7d851240d479
children 8a4984c5cacc
comparison
equal deleted inserted replaced
9984:32dfddd8992a 9985:266bf83f634d
77 77
78 ptr = p->data[0]; 78 ptr = p->data[0];
79 stride = p->linesize[0]; 79 stride = p->linesize[0];
80 80
81 for (y=0; y<h; y++) { 81 for (y=0; y<h; y++) {
82 #ifdef WORDS_BIGENDIAN 82 #if HAVE_BIGENDIAN
83 unsigned int x; 83 unsigned int x;
84 for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel) 84 for (x=0; x<w*bytes_per_pixel; x+=bytes_per_pixel)
85 AV_WN16(ptr+x, AV_RL16(buf+x)); 85 AV_WN16(ptr+x, AV_RL16(buf+x));
86 #else 86 #else
87 memcpy(ptr, buf, w*bytes_per_pixel); 87 memcpy(ptr, buf, w*bytes_per_pixel);