[x265] [PATCH] slicetype and Frameencoder :Fix for GCC Compilation Error

Gopu Govindaswamy gopu at multicorewareinc.com
Tue Sep 3 14:24:08 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1378211033 -19800
# Node ID 5f94760e6580d054f5ab9fb4e409b6a81aeb8b03
# Parent  9a2eaa27b17476c798c831a15af019a7148c6735
slicetype and Frameencoder :Fix for GCC Compilation Error

diff -r 9a2eaa27b174 -r 5f94760e6580 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Tue Sep 03 14:36:20 2013 +0530
+++ b/source/encoder/frameencoder.cpp	Tue Sep 03 17:53:53 2013 +0530
@@ -50,12 +50,12 @@
 
 FrameEncoder::FrameEncoder()
     : WaveFront(NULL)
+    , m_threadActive(true)
     , m_top(NULL)
     , m_cfg(NULL)
     , m_frameFilter(NULL)
     , m_pic(NULL)
-    , m_rows(NULL)
-    , m_threadActive(true)
+    , m_rows(NULL) 
 {
 }
 
diff -r 9a2eaa27b174 -r 5f94760e6580 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Tue Sep 03 14:36:20 2013 +0530
+++ b/source/encoder/slicetype.cpp	Tue Sep 03 17:53:53 2013 +0530
@@ -424,7 +424,7 @@
     int vbv_lookahead = 0;
 
     TComList<TComPic*>::iterator iterPic = inputQueue.begin();
-    for (framecnt = 0; (framecnt < maxSearch) && (framecnt < inputQueue.size()); framecnt++)
+    for (framecnt = 0; (framecnt < maxSearch) && ((unsigned int)framecnt < inputQueue.size()); framecnt++)
     {
         frames[framecnt + 1] = &((*iterPic++)->m_lowres);
         frames[framecnt + 1]->sliceType = X265_TYPE_AUTO;


More information about the x265-devel mailing list