# HG changeset patch
# User Aruna Matheswaran <[email protected]>
# Date 1517404033 -19800
#      Wed Jan 31 18:37:13 2018 +0530
# Branch stable
# Node ID e793f0e12e2c6c8473ce738d241c66be126d6919
# Parent  68b17aa887aa9daaa6dcb62161ab29f52b7dfe70
slicetype: fix hanging issue due to dropping of BREF frames

While forcing slicetypes through qp file, few BREF frames were not copied into
lookahead's output queue due to incorrect check condition.

diff -r 68b17aa887aa -r e793f0e12e2c source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp      Sat Jan 27 18:45:21 2018 +0530
+++ b/source/encoder/slicetype.cpp      Wed Jan 31 18:37:13 2018 +0530
@@ -1204,7 +1204,7 @@
     m_outputQueue.pushBack(*list[bframes]);
 
     /* Add B-ref frame next to P frame in output queue, the B-ref encode 
before non B-ref frame */
-    if (bframes > 1 && m_param->bBPyramid)
+    if (brefs)
     {
         for (int i = 0; i < bframes; i++)
         {
# HG changeset patch
# User Aruna Matheswaran <[email protected]>
# Date 1517404033 -19800
#      Wed Jan 31 18:37:13 2018 +0530
# Branch stable
# Node ID e793f0e12e2c6c8473ce738d241c66be126d6919
# Parent  68b17aa887aa9daaa6dcb62161ab29f52b7dfe70
slicetype: fix hanging issue due to dropping of BREF frames

While forcing slicetypes through qp file, few BREF frames were not copied into
lookahead's output queue due to incorrect check condition.

diff -r 68b17aa887aa -r e793f0e12e2c source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Sat Jan 27 18:45:21 2018 +0530
+++ b/source/encoder/slicetype.cpp	Wed Jan 31 18:37:13 2018 +0530
@@ -1204,7 +1204,7 @@
     m_outputQueue.pushBack(*list[bframes]);
 
     /* Add B-ref frame next to P frame in output queue, the B-ref encode before non B-ref frame */
-    if (bframes > 1 && m_param->bBPyramid)
+    if (brefs)
     {
         for (int i = 0; i < bframes; i++)
         {
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to