[x265] [PATCH] YUV Output: more rext merge bugs

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Wed Nov 6 10:59:41 CET 2013


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1383731950 -19800
# Node ID 23eec0e010642ef64fe159b084738f255dfdb56d
# Parent  bc99537483f101547312a589ceb3d428c176cfed
YUV Output: more rext merge bugs

diff -r bc99537483f1 -r 23eec0e01064 source/output/yuv.cpp
--- a/source/output/yuv.cpp	Tue Nov 05 22:21:55 2013 -0600
+++ b/source/output/yuv.cpp	Wed Nov 06 15:29:10 2013 +0530
@@ -61,8 +61,8 @@
     {
         for (int i = 0; i < x265_cli_csps[colorSpace].planes; i++)
         {
-            uint16_t *src = (uint16_t*)pic.planes[0];
-            for (int h = 0; h < height; h++)
+            uint16_t *src = (uint16_t*)pic.planes[i];
+            for (int h = 0; h < height >> x265_cli_csps[colorSpace].height[i]; h++)
             {
                 ofs.write((const char*)src, (width * pixelbytes) >> x265_cli_csps[colorSpace].width[i]);
                 src += pic.stride[i];
@@ -73,7 +73,7 @@
     {
         for (int i = 0; i < x265_cli_csps[colorSpace].planes; i++)
         {
-            char *src = (char*)pic.planes[0];
+            char *src = (char*)pic.planes[i];
             for (int h = 0; h < height; h++)
             {
                 ofs.write(src, width >> x265_cli_csps[colorSpace].width[i]);


More information about the x265-devel mailing list