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
This commit is contained in:
Rostislav Pehlivanov 2017-03-20 19:31:58 +00:00
Родитель 9545e42e91
Коммит 6ac579b94c
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -754,12 +754,7 @@ int od_enc_rc_select_quantizers_and_lambdas(od_rc_state *rc,
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);