From 904817cb9f57902a7e15c758dc39201215cf8c27 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 21 Feb 2012 20:41:14 +0000 Subject: cdxl: fix ham6/8 on big endian Signed-off-by: Paul B Mahol Signed-off-by: Justin Ruggles --- libavcodec/cdxl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/cdxl.c') diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c index bb9df40122..01ebbccc19 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]; } -- cgit v1.2.1