Commit ab0c769d authored by Loren Merritt's avatar Loren Merritt
Browse files

sps->i_num_ref_frames was set higher than necessary


git-svn-id: svn://svn.videolan.org/x264/trunk@76 df754926-b1dd-0310-bc7b-ec298dee348c
parent e33ed4c9
......@@ -77,7 +77,9 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param )
}
}
sps->i_num_ref_frames = param->i_frame_reference + 1; /* +1 for 2 ref in B */
sps->i_num_ref_frames = param->i_frame_reference;
if( param->i_bframe )
sps->i_num_ref_frames++; /* for 2 ref in B */
sps->b_gaps_in_frame_num_value_allowed = 0;
sps->i_mb_width = ( param->i_width + 15 ) / 16;
sps->i_mb_height= ( param->i_height + 15 )/ 16;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment