changeset 3900:9c4c2b1c7fe0

slicetype: Remove unnecessary initialization
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Fri, 06 Sep 2013 15:35:18 +0530
parents 0f79f2f96170
children 86603fe88df5
files source/encoder/slicetype.cpp
diffstat 1 files changed, 1 insertions(+-), 4 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/slicetype.cpp	Fri Sep 06 21:51:10 2013 +0800
+++ b/source/encoder/slicetype.cpp	Fri Sep 06 15:35:18 2013 +0530
@@ -447,10 +447,7 @@ void Lookahead::slicetypeAnalyse(bool bK
         frames[framecnt + 1] = &((*iterPic++)->m_lowres);
         frames[framecnt + 1]->sliceType = X265_TYPE_AUTO;
     }
-    for (int i = framecnt; i < maxSearch; i++)
-    {
-        frames[i+1] = NULL;
-    }
+    frames[framecnt+1] = NULL;
 
     keyint_limit = cfg->param.keyframeMax - frames[1]->frameNum + lastKeyframe;
     origNumFrames = num_frames = X265_MIN(framecnt, keyint_limit);