[x265] [PATCH] slicetype: fix hanging issue due to dropping of BREF frames

aruna at multicorewareinc.com aruna at multicorewareinc.com
Thu Feb 1 13:08:52 CET 2018


# HG changeset patch
# User Aruna Matheswaran <aruna at multicorewareinc.com>
# 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++)
         {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265_clone.patch
Type: text/x-patch
Size: 944 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180201/b3cd7386/attachment.bin>


More information about the x265-devel mailing list