[x265] A few warnings from GCC 4.8.2

Mario Rohkrämer contact at ligh.de
Sun Jul 13 23:33:33 CEST 2014


level.cpp
+----
h:/MSYS/home/LigH/x265/source/encoder/level.cpp: In function 'void  
x265::determineLevel(const x265_param&, x265::Profile::Name&,  
x265::Level::Name&, x265::Level::Tier&)':
h:/MSYS/home/LigH/x265/source/encoder/level.cpp:143:24: warning: array  
subscript is above array bounds [-Warray-bounds]
          while (levels[i].levelIdc < param.levelIdc && levels[i].levelIdc)
                         ^
h:/MSYS/home/LigH/x265/source/encoder/level.cpp:143:24: warning: array  
subscript is above array bounds [-Warray-bounds]
+----

ratecontrol.cpp
+----
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp: In member function  
'bool x265::RateControl::initPass2()':
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning:  
'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
  bool RateControl::initPass2()
       ^
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning:  
'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning: 'a'  
may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning:  
'minVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning:  
'maxVal' may be used uninitialized in this function [-Wmaybe-uninitialized]
h:/MSYS/home/LigH/x265/source/encoder/ratecontrol.cpp:731:6: warning: 'a'  
may be used uninitialized in this function [-Wmaybe-uninitialized]
+----

-- 

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


More information about the x265-devel mailing list