]> granicus.if.org Git - libvpx/commitdiff
corrupted frames shouldn't affect stats
authorJim Bankoski <jimbankoski@google.com>
Wed, 30 Apr 2014 17:13:29 +0000 (10:13 -0700)
committerJim Bankoski <jimbankoski@google.com>
Wed, 30 Apr 2014 17:13:29 +0000 (10:13 -0700)
Don't update the stats if we have a corrupted frame.

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

vp9/decoder/vp9_decodeframe.c

index 1cc7ab727335e1deaa21823a75347adaa5a6f7b1..45ebb2feded5d6e227ddc104d54621915c501f00 100644 (file)
@@ -1370,7 +1370,8 @@ int vp9_decode_frame(VP9Decoder *pbi,
                          "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)) {