From: Marco Paniconi Date: Thu, 20 Feb 2014 01:13:38 +0000 (-0800) Subject: Condition alt-ref entropy context setting on svc. X-Git-Tag: v1.4.0~2317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd402e1374531ebdb4ddc59a16dd76c7ee07215e;p=libvpx Condition alt-ref entropy context setting on svc. Avoid special context setting for alt-ref in svc mode. Change-Id: I5337d0739abe16aab7854bcaa3c8537191c4b60c --- diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index cdb03c00c..ddde48aa6 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -2808,7 +2808,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, if (cm->frame_type == KEY_FRAME) { vp9_setup_key_frame(cpi); } 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; } vp9_setup_inter_frame(cpi); @@ -2864,7 +2864,7 @@ static void encode_with_recode_loop(VP9_COMP *cpi, if (cm->frame_type == KEY_FRAME) { vp9_setup_key_frame(cpi); } 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; } vp9_setup_inter_frame(cpi);