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.
This commit is contained in:
Jim Bankoski 2014-04-30 10:13:29 -07:00
parent 3f6d1bce3c
commit 29af017fc0

View 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)) {