From 83bd16aaf3f8820bf13c7f4d5766c7be6d05ea5f Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Thu, 20 Aug 2015 09:26:17 -0700 Subject: [PATCH] Refactor REFS_PER_FRAME definition Define it as a function of reference frame types to provide scalability for multiple reference frames. Change-Id: I77b856c96916f352bc31004b9266b3f24e19bd0f --- vp10/common/onyxc_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp10/common/onyxc_int.h b/vp10/common/onyxc_int.h index 83388e680..4118d89f2 100644 --- a/vp10/common/onyxc_int.h +++ b/vp10/common/onyxc_int.h @@ -32,7 +32,7 @@ extern "C" { #endif -#define REFS_PER_FRAME 3 +#define REFS_PER_FRAME (ALTREF_FRAME - LAST_FRAME + 1) #define REF_FRAMES_LOG2 3 #define REF_FRAMES (1 << REF_FRAMES_LOG2) -- 2.40.0