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

aruna at multicorewareinc.com aruna at multicorewareinc.com
Wed Jan 31 14:57:21 CET 2018


# HG changeset patch
# User Aruna Matheswaran <aruna at multicorewareinc.com>
# Date 1517404033 -19800
#      Wed Jan 31 18:37:13 2018 +0530
# Node ID 15a5db21fcd81abfc64256c3669eac49382ff602
# Parent  79c5e3bfeb59041be822f7a4a21b95548ddccd07
slicetype: fix hanging issue due to dropping of BREF frames

We were able to catch this issue while forcing slicetypes through qp file. In
this case, few BREF frames were not copied into lookahead's output queue due to
incorrect check conditions.

diff -r 79c5e3bfeb59 -r 15a5db21fcd8 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Tue Jan 30 15:57:08 2018 +0530
+++ b/source/encoder/slicetype.cpp	Wed Jan 31 18:37:13 2018 +0530
@@ -1236,7 +1236,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: 976 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180131/b6c9cb13/attachment.bin>


More information about the x265-devel mailing list