From 29af017fc07c29f590bd96fc7e68007fb2fd8c6b Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Wed, 30 Apr 2014 10:13:29 -0700 Subject: [PATCH] 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. --- vp9/decoder/vp9_decodeframe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c index 1cc7ab727..45ebb2fed 100644 --- a/vp9/decoder/vp9_decodeframe.c +++ b/vp9/decoder/vp9_decodeframe.c @@ -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)) { -- 2.40.0