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,
"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) {
if (!frame_is_intra_only(cm)) {
Supports Markdown
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