[x265] [PATCH] Fix - Unused variable warning in linux

aasaipriya at multicorewareinc.com aasaipriya at multicorewareinc.com
Mon Jul 23 09:40:29 CEST 2018


# HG changeset patch
# User Aasaipriya Chandran <aasaipriya at multicorewareinc.com>
# Date 1532331616 -19800
#      Mon Jul 23 13:10:16 2018 +0530
# Node ID 3188d97df5961fba13ae3256847b9ae710a373f0
# Parent  f2b7bbcc4639ba37204634ba35d6c44e684a3960
Fix - Unused variable warning in linux

diff -r f2b7bbcc4639 -r 3188d97df596 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Mon Jul 23 12:51:31 2018 +0530
+++ b/source/encoder/analysis.cpp	Mon Jul 23 13:10:16 2018 +0530
@@ -3032,9 +3032,9 @@
             for (int32_t i = 0; i < numPredDir; i++)
             {
                 int* ref = &m_reuseRef[i * m_frame->m_analysisData.numPartitions * m_frame->m_analysisData.numCUsInFrame];
-                x265_analysis_MV src = m_reuseMv[i][cuGeom.absPartIdx]; MV dst = bestME[i].mv;
+                x265_analysis_MV src = m_reuseMv[i][cuGeom.absPartIdx];
                 bestME[i].ref = ref[cuGeom.absPartIdx];
-                COPY_TO_MV(src.x, src.y, dst.x, dst.y);
+                COPY_TO_MV(src.x, src.y, bestME[i].mv.x, bestME[i].mv.y);
                 bestME[i].mvpIdx = m_reuseMvpIdx[i][cuGeom.absPartIdx];
             }
         }
@@ -3097,10 +3097,10 @@
             MotionData* bestME = interMode.bestME[part];
             for (int32_t i = 0; i < numPredDir; i++)
             {
-                x265_analysis_MV src = m_reuseMv[i][cuGeom.absPartIdx]; MV dst = bestME[i].mv;
+                x265_analysis_MV src = m_reuseMv[i][cuGeom.absPartIdx];
                 int* ref = &m_reuseRef[i * m_frame->m_analysisData.numPartitions * m_frame->m_analysisData.numCUsInFrame];
                 bestME[i].ref = ref[cuGeom.absPartIdx];
-                COPY_TO_MV(src.x, src.y, dst.x, dst.y);
+                COPY_TO_MV(src.x, src.y, bestME[i].mv.x, bestME[i].mv.y);
                 bestME[i].mvpIdx = m_reuseMvpIdx[i][cuGeom.absPartIdx];
             }
         }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265_4.patch
Type: text/x-patch
Size: 1886 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180723/601474b7/attachment.bin>


More information about the x265-devel mailing list