shithub: libvpx

Download patch

ref: 29af017fc07c29f590bd96fc7e68007fb2fd8c6b
parent: 3f6d1bce3cf16e14a508b86dae5dcf2e146f7f10
author: Jim Bankoski <jimbankoski@google.com>
date: Wed Apr 30 06:13:29 EDT 2014

corrupted frames shouldn't affect stats

Don't update the stats if we have a corrupted frame.

Change-Id: I65a13adc50e0389b4201d3b671f0225195dfaff4
TODO: Test case that shows this problem.

--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1370,7 +1370,8 @@
                          "A stream must start with a complete key frame");
   }
 
-  if (!cm->error_resilient_mode && !cm->frame_parallel_decoding_mode) {
+  if (!cm->error_resilient_mode && !cm->frame_parallel_decoding_mode &&
+      !new_fb->corrupted) {
     vp9_adapt_coef_probs(cm);
 
     if (!frame_is_intra_only(cm)) {
--