summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Nguyen <kim@nguyen.vg>2011-07-25 04:49:21 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2011-07-25 04:49:21 (GMT)
commitd8a67ef62c21e23c9ab3a37fa80cc204bc8db14c (patch)
tree60d17629b982e486b1255ae78009f4d6a66beaec
parentc11ee69c81198dc221c874e8132f1f30a385fa63 (diff)
Fix endian issue in OSD color conversion
Fixes #9917 There were already defines available that were setup by endian, just not consistently used. Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
-rw-r--r--mythtv/libs/libmythtv/util-osd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mythtv/libs/libmythtv/util-osd.cpp b/mythtv/libs/libmythtv/util-osd.cpp
index 8634c75..cf867b8 100644
--- a/mythtv/libs/libmythtv/util-osd.cpp
+++ b/mythtv/libs/libmythtv/util-osd.cpp
@@ -243,10 +243,10 @@ void inline c_yuv888_to_yv12(VideoFrame *frame, MythImage *osd_image,
src1 = osd_image->scanLine(top) + (left << 2);
src2 = osd_image->scanLine(top + 1) + (left << 2);
- b1 = src1 + B_OI; b2 = b1 + 4; b3 = src2 + 0; b4 = b3 + 4;
- g1 = src1 + G_OI; g2 = g1 + 4; g3 = src2 + 1; g4 = g3 + 4;
- r1 = src1 + R_OI; r2 = r1 + 4; r3 = src2 + 2; r4 = r3 + 4;
- a1 = src1 + A_OI; a2 = a1 + 4; a3 = src2 + 3; a4 = a3 + 4;
+ b1 = src1 + B_OI; b2 = b1 + 4; b3 = src2 + B_OI; b4 = b3 + 4;
+ g1 = src1 + G_OI; g2 = g1 + 4; g3 = src2 + G_OI; g4 = g3 + 4;
+ r1 = src1 + R_OI; r2 = r1 + 4; r3 = src2 + R_OI; r4 = r3 + 4;
+ a1 = src1 + A_OI; a2 = a1 + 4; a3 = src2 + A_OI; a4 = a3 + 4;
src_wrap = (osd_image->bytesPerLine() << 1) - (width << 2);
y_wrap = (frame->pitches[0] << 1) - width;