x264_zone_t *zone = get_zone( h, frame_num );
// force I/B quants as a function of P quants
- const double last_p_q = rcc->last_qscale_for[SLICE_TYPE_P];
- const double last_non_b_q= rcc->last_qscale_for[rcc->last_non_b_pict_type];
if( pict_type == SLICE_TYPE_I )
{
double iq = q;
else if( pict_type == SLICE_TYPE_B )
{
if( h->param.rc.f_pb_factor > 0 )
- q = last_non_b_q;
+ q = rcc->last_qscale_for[rcc->last_non_b_pict_type];
if( !rce->kept_as_ref )
q *= fabs( h->param.rc.f_pb_factor );
}
&& rcc->last_non_b_pict_type == SLICE_TYPE_P
&& rce->tex_bits == 0 )
{
- q = last_p_q;
+ q = rcc->last_qscale_for[SLICE_TYPE_P];
}
/* last qscale / qdiff stuff */