Commit 01613aa7 authored by Jingning Han's avatar Jingning Han
Browse files

Set second ref frame to be NONE in key frame coding

This commit explicitly set the second reference frame type to be
NONE in key frame coding mode. This fixes a subtle dependency of
reference motion vector used by next inter frame on mode_info
reset before key frame coding.

Change-Id: I5ff0359753fdc9992b0bfe889490f7a32d7d5f6a
parent 5fdd0f1f
...@@ -2726,6 +2726,7 @@ void vp9_rd_pick_intra_mode_sb(VP9_COMP *cpi, MACROBLOCK *x, ...@@ -2726,6 +2726,7 @@ void vp9_rd_pick_intra_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
x->skip_encode = 0; x->skip_encode = 0;
ctx->skip = 0; ctx->skip = 0;
xd->mi[0].src_mi->mbmi.ref_frame[0] = INTRA_FRAME; xd->mi[0].src_mi->mbmi.ref_frame[0] = INTRA_FRAME;
xd->mi[0].src_mi->mbmi.ref_frame[1] = NONE;
if (bsize >= BLOCK_8X8) { if (bsize >= BLOCK_8X8) {
if (rd_pick_intra_sby_mode(cpi, x, &rate_y, &rate_y_tokenonly, if (rd_pick_intra_sby_mode(cpi, x, &rate_y, &rate_y_tokenonly,
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