Mercurial > libavcodec.hg
comparison flicvideo.c @ 9985:266bf83f634d libavcodec
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author | mru |
---|---|
date | Sun, 26 Jul 2009 12:20:04 +0000 |
parents | 5da84f0d0a55 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
9984:32dfddd8992a | 9985:266bf83f634d |
---|---|
583 /* Now FLX is strange, in that it is "byte" as opposed to "pixel" run length compressed. | 583 /* Now FLX is strange, in that it is "byte" as opposed to "pixel" run length compressed. |
584 * This does not give us any good oportunity to perform word endian conversion | 584 * This does not give us any good oportunity to perform word endian conversion |
585 * during decompression. So if it is required (i.e., this is not a LE target, we do | 585 * during decompression. So if it is required (i.e., this is not a LE target, we do |
586 * a second pass over the line here, swapping the bytes. | 586 * a second pass over the line here, swapping the bytes. |
587 */ | 587 */ |
588 #ifdef WORDS_BIGENDIAN | 588 #if HAVE_BIGENDIAN |
589 pixel_ptr = y_ptr; | 589 pixel_ptr = y_ptr; |
590 pixel_countdown = s->avctx->width; | 590 pixel_countdown = s->avctx->width; |
591 while (pixel_countdown > 0) { | 591 while (pixel_countdown > 0) { |
592 *((signed short*)(&pixels[pixel_ptr])) = AV_RL16(&buf[pixel_ptr]); | 592 *((signed short*)(&pixels[pixel_ptr])) = AV_RL16(&buf[pixel_ptr]); |
593 pixel_ptr += 2; | 593 pixel_ptr += 2; |