# HG changeset patch # User mru # Date 1182005530 0 # Node ID b683b5f78fabc4e51da8455fd2c3624ce12cc477 # Parent b985439e3e15d40a6e59abe677108294b4e79c03 replace endian detection hack with #ifdef WORDS_BIGENDIAN diff -r b985439e3e15 -r b683b5f78fab flicvideo.c --- a/flicvideo.c Sat Jun 16 14:52:05 2007 +0000 +++ b/flicvideo.c Sat Jun 16 14:52:10 2007 +0000 @@ -583,16 +583,14 @@ * during decompression. So if it is required (i.e., this is not a LE target, we do * a second pass over the line here, swapping the bytes. */ - pixel = 0xFF00; - if (0xFF00 != AV_RL16(&pixel)) /* Check if it is not an LE target */ - { +#ifdef WORDS_BIGENDIAN pixel_ptr = y_ptr; pixel_countdown = s->avctx->width; while (pixel_countdown > 0) { *((signed short*)(&pixels[pixel_ptr])) = AV_RL16(&buf[pixel_ptr]); pixel_ptr += 2; } - } +#endif y_ptr += s->frame.linesize[0]; } break;