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:52:01 (GMT)
commitbe29d21c2b13e62de86ba0792a8cc55d4c1b674f (patch)
tree6622c657e014d90f94cb035dd62cd3d0149d1d3e
parentb43b015fc0c0897197a8206b0866c0e774fb3406 (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> (cherry picked from commit d8a67ef62c21e23c9ab3a37fa80cc204bc8db14c)
-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 432a7d5..5dcadfe 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;