shithub: libvpx

Download patch

ref: 603cdcfce58f1e930847f10ff502e7bc10afdcc9
parent: 581c8dbd3374fa90c0f31573d4c2369604f47721
parent: e7bad92689e6dda785ea6edde39bd7740c00a8dd
author: JackyChen <jackychen@google.com>
date: Tue Dec 16 06:12:03 EST 2014

Merge "Fixed MFQE crash issue for highbit depth."

--- a/vp9/common/vp9_postproc.c
+++ b/vp9/common/vp9_postproc.c
@@ -637,6 +637,12 @@
   YV12_BUFFER_CONFIG *const ppbuf = &cm->post_proc_buffer;
   struct postproc_state *const ppstate = &cm->postproc_state;
 
+#if CONFIG_VP9_HIGHBITDEPTH
+  const int flag_highbit = 1;
+#else
+  const int flag_highbit = 0;
+#endif
+
   if (!cm->frame_to_show)
     return -1;
 
@@ -693,7 +699,7 @@
                        "Failed to allocate post-processing buffer");
 
   if ((flags & VP9D_MFQE) && cm->current_video_frame >= 2 &&
-      cm->postproc_state.last_frame_valid &&
+      cm->postproc_state.last_frame_valid && !flag_highbit &&
       cm->postproc_state.last_base_qindex <= last_q_thresh &&
       cm->base_qindex - cm->postproc_state.last_base_qindex >= q_diff_thresh) {
     vp9_mfqe(cm);