[x265] Encoder::encode(): don't return 0 while flushing.

Satoshi Nakagawa nakagawa424 at oki.com
Tue Jun 17 07:47:55 CEST 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1402983802 -32400
#      Tue Jun 17 14:43:22 2014 +0900
# Node ID cf222575f2032ff5824d58470d63561f79c3905e
# Parent  f25ed861850950d2bd31c51dbc9267333515af88
Encoder::encode(): don't return 0 while flushing.

diff -r f25ed8618509 -r cf222575f203 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Mon Jun 16 20:32:13 2014 -0500
+++ b/source/encoder/encoder.cpp	Tue Jun 17 14:43:22 2014 +0900
@@ -481,6 +481,11 @@
         curEncoder->m_enable.trigger();
     }
 
+    if (!ret && flush && fenc)
+    {
+        return encode(flush, NULL, pic_out, nalunits);
+    }
+
     return ret;
 }
 


More information about the x265-devel mailing list