[x265] [PATCH] fix size_t and bool type in x265_picture

Divya Manivannan divya at multicorewareinc.com
Thu Feb 18 09:25:47 CET 2016


# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1455771204 -19800
#      Thu Feb 18 10:23:24 2016 +0530
# Node ID eb9abe4f9af0f3f920612609b0173669fe09d928
# Parent  f44b6adbffd32cff9ee565f6f263584b031559b4
fix size_t and bool type in x265_picture

diff -r f44b6adbffd3 -r eb9abe4f9af0 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Feb 11 15:49:14 2016 +0530
+++ b/source/encoder/encoder.cpp	Thu Feb 18 10:23:24 2016 +0530
@@ -795,7 +795,7 @@
                 pic_out->rcData.poc = curEncoder->m_rce.poc;
                 pic_out->rcData.encodeOrder = curEncoder->m_rce.encodeOrder;
                 pic_out->rcData.sliceType = curEncoder->m_rce.sliceType;
-                pic_out->rcData.keptAsRef = curEncoder->m_rce.sliceType == B_SLICE && !IS_REFERENCED(outFrame) ? false : true;
+                pic_out->rcData.keptAsRef = curEncoder->m_rce.sliceType == B_SLICE && !IS_REFERENCED(outFrame) ? 0 : 1;
             }
 
             /* Allow this frame to be recycled if no frame encoders are using it for reference */
diff -r f44b6adbffd3 -r eb9abe4f9af0 source/x265.h
--- a/source/x265.h	Thu Feb 11 15:49:14 2016 +0530
+++ b/source/x265.h	Thu Feb 18 10:23:24 2016 +0530
@@ -163,7 +163,7 @@
     int     poc;
     int     encodeOrder;
     int     sliceType;
-    bool    keptAsRef;
+    int     keptAsRef;
 } x265_rc_stats;
 
 /* Used to pass pictures into the encoder, and to get picture data back out of
@@ -189,7 +189,7 @@
     /* Stride is the number of bytes between row starts */
     int     stride[3];
 
-    size_t framesize;
+    uint64_t framesize;
 
     int    height;
 


More information about the x265-devel mailing list