xiphrc: set frame_subtype to frame_type We account for golden P frames and altref P frames using separate scales unlike Theora which used the same scales as regular P-frames. Change-Id: I87eca16de4fcd8fabe2a45fb9121c6e22ff70f61
diff --git a/av1/encoder/ratectrl_xiph.c b/av1/encoder/ratectrl_xiph.c index 7f0bb30..3c257e6 100644 --- a/av1/encoder/ratectrl_xiph.c +++ b/av1/encoder/ratectrl_xiph.c
@@ -754,12 +754,7 @@ range.*/ lossy_quantizer_min = convert_to_ac_quant(rc->minq, rc->bit_depth); lossy_quantizer_max = convert_to_ac_quant(rc->maxq, rc->bit_depth); - /*P-frames can be golden, and thus boosted. - Boosted and un-boosted P-frames are treated as different subtypes for - convenience. */ - frame_subtype = is_golden_frame && frame_type == OD_P_FRAME - ? OD_GOLDEN_P_FRAME - : frame_type; + frame_subtype = frame_type; /*Stash quantizer modulation by frame type.*/ mqp_Q12[OD_I_FRAME] = OD_F_Q12(mqp_i); mqp_Q12[OD_P_FRAME] = OD_F_Q12(mqp_p);