From: Jim Bankoski Date: Wed, 30 Apr 2014 17:13:29 +0000 (-0700) Subject: corrupted frames shouldn't affect stats X-Git-Tag: v1.4.0~1702^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29af017fc07c29f590bd96fc7e68007fb2fd8c6b;p=libvpx 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. --- 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)) {