From 51b3035fc339acbbe0fa039af0d942d78879a4c8 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Tue, 8 Apr 2014 18:59:09 -0700 Subject: Adding vp9_inc_frame_in_layer() function. Change-Id: Idf612c772440158cd1645623241c51ab0d57405c --- vp9/encoder/vp9_onyx_if.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'vp9/encoder/vp9_onyx_if.c') diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index 67df43515..3619ec89e 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -2756,15 +2756,8 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, // Don't increment frame counters if this was an altref buffer // update not a real frame ++cm->current_video_frame; - if (cpi->use_svc) { - LAYER_CONTEXT *lc; - if (cpi->svc.number_temporal_layers > 1) { - lc = &cpi->svc.layer_context[cpi->svc.temporal_layer_id]; - } else { - lc = &cpi->svc.layer_context[cpi->svc.spatial_layer_id]; - } - ++lc->current_video_frame_in_layer; - } + if (cpi->use_svc) + vp9_inc_frame_in_layer(&cpi->svc); } // restore prev_mi -- cgit v1.2.3