Index: encoder/encoder.c =================================================================== --- encoder/encoder.c (revision 717) +++ encoder/encoder.c (working copy) @@ -882,7 +882,7 @@ } } - h->i_ref1 = X264_MIN( h->i_ref1, h->frames.i_max_ref1 ); + h->i_ref1 = X264_MIN( h->i_ref1, 1 ); h->i_ref0 = X264_MIN( h->i_ref0, h->frames.i_max_ref0 ); h->i_ref0 = X264_MIN( h->i_ref0, h->param.i_frame_reference ); // if reconfig() has lowered the limit h->i_ref0 = X264_MIN( h->i_ref0, 16 - h->i_ref1 );