[x265] [PATCH 2 of 4] TComPrediction: Fix reordered initialization list

ShinYee Chung shinyee at multicorewareinc.com
Wed Jun 19 18:25:18 CEST 2013


# HG changeset patch
# User ShinYee Chung <shinyee at multicorewareinc.com>
# Date 1371656577 -28800
# Node ID 7fbcba3e26a084047aa003d30891c8f9a76637ba
# Parent  d09653f00911cea0b1b725eeb35b9297b20c0ba1
TComPrediction: Fix reordered initialization list.

Sample compile errors in Linux64/GCC4.8.1:

$HEVC/source/Lib/TLibCommon/TComPrediction.h: In constructor ‘TComPrediction::TComPrediction()’:
$HEVC/source/Lib/TLibCommon/TComPrediction.h:80:12: error: ‘TComPrediction::m_iLumaRecStride’ will be initialized after [-Werror=reorder]
     Int    m_iLumaRecStride;     ///< stride of #m_pLumaRecBuffer array
            ^
$HEVC/source/Lib/TLibCommon/TComPrediction.h:79:12: error:   ‘Pel* TComPrediction::m_pLumaRecBuffer’ [-Werror=reorder]
     Pel*   m_pLumaRecBuffer;     ///< array for downsampled reconstructed luma sample
            ^
$HEVC/source/Lib/TLibCommon/TComPrediction.cpp:60:1: error:   when initialized here [-Werror=reorder]
 TComPrediction::TComPrediction()
 ^
In file included from $HEVC/source/Lib/TLibCommon/TComPrediction.cpp:39:0:
$HEVC/source/Lib/TLibCommon/TComPrediction.h:79:12: error: ‘TComPrediction::m_pLumaRecBuffer’ will be initialized after [-Werror=reorder]
     Pel*   m_pLumaRecBuffer;     ///< array for downsampled reconstructed luma sample
            ^
$HEVC/source/Lib/TLibCommon/TComPrediction.h:62:15: error:   ‘Pel* TComPrediction::m_piPredBuf’ [-Werror=reorder]
     Pel*      m_piPredBuf;
               ^
$HEVC/source/Lib/TLibCommon/TComPrediction.cpp:60:1: error:   when initialized here [-Werror=reorder]
 TComPrediction::TComPrediction()
 ^

diff -r d09653f00911 -r 7fbcba3e26a0 source/Lib/TLibCommon/TComPrediction.cpp
--- a/source/Lib/TLibCommon/TComPrediction.cpp	Wed Jun 19 23:41:21 2013 +0800
+++ b/source/Lib/TLibCommon/TComPrediction.cpp	Wed Jun 19 23:42:57 2013 +0800
@@ -58,10 +58,10 @@
 // ====================================================================================================================
 
 TComPrediction::TComPrediction()
-    : m_pLumaRecBuffer(0)
+    : m_piPredBuf(NULL)
+    , m_piPredAngBufs(NULL)
+    , m_pLumaRecBuffer(0)
     , m_iLumaRecStride(0)
-    , m_piPredBuf(NULL)
-    , m_piPredAngBufs(NULL)
 {
 }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhevc.hg-2.patch
Type: text/x-patch
Size: 2218 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130620/1ca23449/attachment.bin>


More information about the x265-devel mailing list