Commit 29af017f authored by Jim Bankoski's avatar Jim Bankoski
Browse files

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.
parent 3f6d1bce
...@@ -1370,7 +1370,8 @@ int vp9_decode_frame(VP9Decoder *pbi, ...@@ -1370,7 +1370,8 @@ int vp9_decode_frame(VP9Decoder *pbi,
"A stream must start with a complete key frame"); "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); vp9_adapt_coef_probs(cm);
if (!frame_is_intra_only(cm)) { if (!frame_is_intra_only(cm)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment