[x265] Warning in TEncSearch.cpp:2481 due to double assignment?

Mario *LigH* Rohkrämer contact at ligh.de
Mon Mar 10 14:25:36 CET 2014


+----
h:/MSYS/home/Entwicklung/x265/source/Lib/TLibEncoder/TEncSearch.cpp: In  
member function 'void  
x265::TEncSearch::xMergeEstimation(x265::TComDataCU*, int, uint32_t&,  
x265::TComMvField*, uint32_t&, uint32_t&, uint32_t&, x265::TComMvField*,  
x265::UChar*, int&)':
h:/MSYS/home/Entwicklung/x265/source/Lib/TLibEncoder/TEncSearch.cpp:2481:52:  
warning: operation on 'bitsCand' may be undefined [-Wsequence-point]
          uint32_t bitsCand = bitsCand = mergeCand + 1;
                                                     ^
+----

Is it a bug (copy+paste+paste) or a feature to have a double "bitsCand ="  
assignment in the same line?

-- 
__________

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
 


More information about the x265-devel mailing list