cdxl: fix ham6/8 on big endian
authorPaul B Mahol <onemda@gmail.com>
Tue, 21 Feb 2012 20:41:14 +0000 (20:41 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 25 Feb 2012 05:18:14 +0000 (00:18 -0500)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/cdxl.c

index bb9df40..01ebbcc 100644 (file)
@@ -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];
     }