summaryrefslogtreecommitdiffstats
path: root/libavcodec/cdxl.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-02-21 20:41:14 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-25 00:18:14 -0500
commit904817cb9f57902a7e15c758dc39201215cf8c27 (patch)
tree2fa77a45c0c13640e805ce9bdf58a706b295e09c /libavcodec/cdxl.c
parent2bb628f870264455ff2573c6f56580e7c5dc8717 (diff)
downloadffmpeg-streaming-904817cb9f57902a7e15c758dc39201215cf8c27.zip
ffmpeg-streaming-904817cb9f57902a7e15c758dc39201215cf8c27.tar.gz
cdxl: fix ham6/8 on big endian
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavcodec/cdxl.c')
-rw-r--r--libavcodec/cdxl.c4
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];
}
OpenPOWER on IntegriCloud