Merge "Fix bug when overlaying middle arfs in multi-arf groups."
This commit is contained in:
commit
2b5baea8fd
@ -1257,8 +1257,12 @@ static void update_golden_frame_stats(VP9_COMP *cpi) {
|
|||||||
rc->frames_since_golden = 0;
|
rc->frames_since_golden = 0;
|
||||||
|
|
||||||
// If we are not using alt ref in the up and coming group clear the arf
|
// If we are not using alt ref in the up and coming group clear the arf
|
||||||
// active flag.
|
// active flag. In multi arf group case, if the index is not 0 then
|
||||||
if (!rc->source_alt_ref_pending) {
|
// we are overlaying a mid group arf so should not reset the flag.
|
||||||
|
if (cpi->oxcf.pass == 2) {
|
||||||
|
if (!rc->source_alt_ref_pending && (cpi->twopass.gf_group.index == 0))
|
||||||
|
rc->source_alt_ref_active = 0;
|
||||||
|
} else if (!rc->source_alt_ref_pending) {
|
||||||
rc->source_alt_ref_active = 0;
|
rc->source_alt_ref_active = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user