shithub: libvpx

Download patch

ref: 690fcd793bce93216917fd164ecdfeae20f905fa
parent: 033dab9ca0adb78a0ce417d5956a6caf440c7ca7
author: Yaowu Xu <yaowu@google.com>
date: Wed Jul 20 05:25:14 EDT 2016

Change to call vp9_post_proc_frame()

This commit changes the call in vp9 encoder from vp9_deblock() to
vp9_post_proc_frame() to ensure the data structures used in the call
are properly allocated. This fixes an encoder crash when configured
with --enable-internal-stats.

Change-Id: I2393b336c0f566665336df4f1ba91c405eb56764

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4944,9 +4944,13 @@
             vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR,
                                "Failed to allocate post processing buffer");
           }
-
-          vp9_deblock(cm->frame_to_show, pp,
-                      cm->lf.filter_level * 10 / 6, cm->postproc_state.limits);
+          {
+            vp9_ppflags_t ppflags;
+            ppflags.post_proc_flag = VP9D_DEBLOCK;
+            ppflags.deblocking_level = 0;  // not used in vp9_post_proc_frame()
+            ppflags.noise_level = 0;       // not used in vp9_post_proc_frame()
+            vp9_post_proc_frame(cm, pp, &ppflags);
+          }
 #endif
           vpx_clear_system_state();