[FFmpeg-cvslog] iff/deep: fix rle32 on big-endian

Piotr Bandurski git at videolan.org
Tue Jan 29 01:19:31 CET 2013


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Tue Jan 29 11:01:13 2013 +1100| [f9a8eeb08c4ccfd0678047e64b0f616ae1379c27] | committer: Peter Ross

iff/deep: fix rle32 on big-endian

Fixes ticket #2197.

Signed-off-by: Peter Ross <pross at xvid.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9a8eeb08c4ccfd0678047e64b0f616ae1379c27
---

 libavcodec/iff.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 6b1fd89..8e7f8ca 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -576,7 +576,7 @@ static void decode_deep_rle32(uint8_t *dst, const uint8_t *src, int src_size, in
             }
         } else {
             int size = -opcode + 1;
-            uint32_t pixel = AV_RL32(src);
+            uint32_t pixel = AV_RN32(src);
             for (i = 0; i < size; i++) {
                 *(uint32_t *)(dst + y*linesize + x * 4) = pixel;
                 x += 1;



More information about the ffmpeg-cvslog mailing list