Commit bab1d61d authored by Loren Merritt's avatar Loren Merritt

disposable frames shouldn't get their own coded_frame_num.



git-svn-id: svn://svn.videolan.org/x264/trunk@309 df754926-b1dd-0310-bc7b-ec298dee348c
parent 31a36aa8
......@@ -1295,11 +1295,8 @@ do_encode:
if( i_slice_type == SLICE_TYPE_B )
x264_macroblock_bipred_init( h );
/* increase frame num but only once for B frame */
if( i_slice_type != SLICE_TYPE_B || h->sh.i_type != SLICE_TYPE_B )
{
if( h->fenc->b_kept_as_ref )
h->i_frame_num++;
}
/* ------------------------ Create slice header ----------------------- */
x264_slice_init( h, i_nal_type, i_slice_type, i_global_qp );
......
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