Fix lingering x->skip settings if static_threshold is used.
Keyframes don't set this variable, so it would use the last set values from inter frames. Change-Id: Ie1ef45ece2c44b21b5d55f6cea9f7d6e7a445692
This commit is contained in:
Родитель
aaf33d7df5
Коммит
33a8df085d
|
@ -4169,6 +4169,7 @@ void vp9_rd_pick_intra_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
|
|||
int64_t txfm_cache[NB_TXFM_MODES], err;
|
||||
int i;
|
||||
|
||||
ctx->skip = 0;
|
||||
xd->mode_info_context->mbmi.mode = DC_PRED;
|
||||
err = rd_pick_intra_sby_mode(cpi, x, &rate_y, &rate_y_tokenonly,
|
||||
&dist_y, &y_skip, bsize, txfm_cache);
|
||||
|
@ -4218,6 +4219,7 @@ void vp9_rd_pick_intra_mode(VP9_COMP *cpi, MACROBLOCK *x,
|
|||
TX_SIZE txfm_size_16x16, txfm_size_8x8;
|
||||
int i;
|
||||
|
||||
x->mb_context[xd->sb_index][xd->mb_index].skip = 0;
|
||||
mbmi->ref_frame = INTRA_FRAME;
|
||||
mbmi->mode = DC_PRED;
|
||||
for (i = 0; i <= TX_8X8; i++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче