Commit fd402e13 authored by Marco Paniconi's avatar Marco Paniconi Committed by Gerrit Code Review
Browse files

Condition alt-ref entropy context setting on svc.

Avoid special context setting for alt-ref in svc mode.

Change-Id: I5337d0739abe16aab7854bcaa3c8537191c4b60c
parent bb61327b
...@@ -2808,7 +2808,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, ...@@ -2808,7 +2808,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi,
if (cm->frame_type == KEY_FRAME) { if (cm->frame_type == KEY_FRAME) {
vp9_setup_key_frame(cpi); vp9_setup_key_frame(cpi);
} else { } else {
if (!cm->intra_only && !cm->error_resilient_mode) { if (!cm->intra_only && !cm->error_resilient_mode && !cpi->use_svc) {
cpi->common.frame_context_idx = cpi->refresh_alt_ref_frame; cpi->common.frame_context_idx = cpi->refresh_alt_ref_frame;
} }
vp9_setup_inter_frame(cpi); vp9_setup_inter_frame(cpi);
...@@ -2864,7 +2864,7 @@ static void encode_with_recode_loop(VP9_COMP *cpi, ...@@ -2864,7 +2864,7 @@ static void encode_with_recode_loop(VP9_COMP *cpi,
if (cm->frame_type == KEY_FRAME) { if (cm->frame_type == KEY_FRAME) {
vp9_setup_key_frame(cpi); vp9_setup_key_frame(cpi);
} else { } else {
if (!cm->intra_only && !cm->error_resilient_mode) { if (!cm->intra_only && !cm->error_resilient_mode && !cpi->use_svc) {
cpi->common.frame_context_idx = cpi->refresh_alt_ref_frame; cpi->common.frame_context_idx = cpi->refresh_alt_ref_frame;
} }
vp9_setup_inter_frame(cpi); vp9_setup_inter_frame(cpi);
......
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