[x265] [PATCH] fix typecast error in initial_cpb_removal_delay_offset in SEI

Divya Manivannan divya at multicorewareinc.com
Wed Jan 20 12:43:26 CET 2016


# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1453290055 -19800
#      Wed Jan 20 17:10:55 2016 +0530
# Branch stable
# Node ID c9585bea04c947d9316d9282b7915f1268b59d27
# Parent  8f2c54c38c82d36ed1e880bc0471b64c62fac2ae
fix typecast error in initial_cpb_removal_delay_offset in SEI

diff -r 8f2c54c38c82 -r c9585bea04c9 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Tue Jan 19 19:58:01 2016 +0800
+++ b/source/encoder/ratecontrol.cpp	Wed Jan 20 17:10:55 2016 +0530
@@ -1853,7 +1853,7 @@
     }
 
     seiBP->m_initialCpbRemovalDelay = (uint32_t)(num * cpbState + denom) / denom;
-    seiBP->m_initialCpbRemovalDelayOffset = (uint32_t)(num * cpbSize + denom) / denom - seiBP->m_initialCpbRemovalDelay;
+    seiBP->m_initialCpbRemovalDelayOffset = (uint32_t)((num * cpbSize + denom) / denom - seiBP->m_initialCpbRemovalDelay);
 }
 
 void RateControl::updateVbvPlan(Encoder* enc)


More information about the x265-devel mailing list