shithub: libvpx

Download patch

ref: 3356cbfe0e75ca3aef28a43dce2231f188e500cf
parent: 21694259e06e496b6dffd94b20bcddde65338a2a
author: Jingning Han <jingning@google.com>
date: Fri Aug 17 08:55:54 EDT 2018

Skip frame bit-stream writing for show-existing frame

Make the bit-stream writer match the decoder behavior, when the
show existing frame feature is used.

Change-Id: Ibc8153f8668da0f9a2ed8af3b42dae91a5ac08c7

--- a/vp9/encoder/vp9_bitstream.c
+++ b/vp9/encoder/vp9_bitstream.c
@@ -1340,6 +1340,10 @@
   struct vpx_write_bit_buffer saved_wb;
 
   write_uncompressed_header(cpi, &wb);
+
+  // Skip the rest coding process if use show existing frame.
+  if (cpi->common.show_existing_frame) return;
+
   saved_wb = wb;
   vpx_wb_write_literal(&wb, 0, 16);  // don't know in advance first part. size