/* references lists */
int i_ref0;
- x264_frame_t *fref0[16]; /* ref list 0 */
+ x264_frame_t *fref0[16+3]; /* ref list 0 */
int i_ref1;
- x264_frame_t *fref1[16]; /* ref list 1 */
+ x264_frame_t *fref1[16+3]; /* ref list 1 */
int b_ref_reorder[2];
}
/* Fix parameters values */
- h->param.i_frame_reference = x264_clip3( h->param.i_frame_reference, 1, 15 );
+ h->param.i_frame_reference = x264_clip3( h->param.i_frame_reference, 1, 16 );
if( h->param.i_keyint_max <= 0 )
h->param.i_keyint_max = 1;
h->param.i_keyint_min = x264_clip3( h->param.i_keyint_min, 1, h->param.i_keyint_max/2+1 );
if(rce->pict_type == SLICE_TYPE_B)
{
- if(rce->kept_as_ref)
+ if(h->fenc->b_kept_as_ref)
return rcc->last_qscale * sqrtf(h->param.rc.f_pb_factor);
else
return rcc->last_qscale * h->param.rc.f_pb_factor;
break;
case IDC_REFFRAMES :
config->i_refmax = GetDlgItemInt( hDlg, IDC_REFFRAMES, FALSE, FALSE );
- if( config->i_refmax > 15 )
+ if( config->i_refmax > 16 )
{
- config->i_refmax = 15;
+ config->i_refmax = 16;
SetDlgItemInt( hDlg, IDC_REFFRAMES, config->i_refmax, FALSE );
}
break;