[x265] [PATCH] rc: bug fix for 2 pass when bframes = 0. fixes Issue #77

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Mon Sep 15 12:41:13 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1410777510 -19800
#      Mon Sep 15 16:08:30 2014 +0530
# Node ID 61c954214181de50f1ca7eb38cda1185590656cc
# Parent  b5fb734517c0fb2c0ea5f42d93c1cf944f171703
rc: bug fix for 2 pass when bframes = 0. fixes Issue #77

diff -r b5fb734517c0 -r 61c954214181 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Mon Sep 15 13:47:05 2014 +0530
+++ b/source/encoder/ratecontrol.cpp	Mon Sep 15 16:08:30 2014 +0530
@@ -50,7 +50,7 @@
     char* q = strstr(opts, "no-"opt);\
     if (p && sscanf(p, opt "=%d" , &i) && param_val != i)\
         bErr = 1;\
-    else if (!param_val && !q)\
+    else if (!param_val && !q && !p)\
         bErr = 1;\
     else if (param_val && (q || !strstr(opts, opt)))\
         bErr = 1;\


More information about the x265-devel mailing list