[FFmpeg-cvslog] cdxl: fix ham6/8 on big endian

Paul B Mahol git at videolan.org
Sun Feb 26 05:21:43 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 21 20:41:14 2012 +0000| [904817cb9f57902a7e15c758dc39201215cf8c27] | committer: Justin Ruggles

cdxl: fix ham6/8 on big endian

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

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

 libavcodec/cdxl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c
index bb9df40..01ebbcc 100644
--- a/libavcodec/cdxl.c
+++ b/libavcodec/cdxl.c
@@ -122,7 +122,7 @@ static void cdxl_decode_ham6(CDXLVideoContext *c)
                 g = index * 0x11 << 8;
                 break;
             }
-            AV_WN32(out + x * 3, r | g | b);
+            AV_WL24(out + x * 3, r | g | b);
         }
         out += c->frame.linesize[0];
     }
@@ -165,7 +165,7 @@ static void cdxl_decode_ham8(CDXLVideoContext *c)
                 g = (index << 10) | (g & (3 << 8));
                 break;
             }
-            AV_WN32(out + x * 3, r | g | b);
+            AV_WL24(out + x * 3, r | g | b);
         }
         out += c->frame.linesize[0];
     }



More information about the ffmpeg-cvslog mailing list