[x265-commits] [x265] analysis: avoid MSVC uninitialized variable warning

Steve Borho steve at borho.org
Fri Aug 15 04:13:04 CEST 2014


details:   http://hg.videolan.org/x265/rev/4c09d2ef5f1b
branches:  
changeset: 7798:4c09d2ef5f1b
user:      Steve Borho <steve at borho.org>
date:      Thu Aug 14 20:45:39 2014 -0500
description:
analysis: avoid MSVC uninitialized variable warning

diffstat:

 source/encoder/analysis.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ef25a0e7de3b -r 4c09d2ef5f1b source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Thu Aug 14 16:06:01 2014 -0500
+++ b/source/encoder/analysis.cpp	Thu Aug 14 20:45:39 2014 -0500
@@ -1705,7 +1705,7 @@ void Analysis::checkIntraInInter_rd0_4(T
     if (m_param->bEnableFastIntra)
     {
         int asad = 0;
-        uint32_t lowmode, highmode, amode, abits = 0;
+        uint32_t lowmode, highmode, amode = 5, abits = 0;
         uint64_t acost = MAX_INT64;
 
         /* pick the best angle, sampling at distance of 5 */


More information about the x265-commits mailing list