From: Jason Garrett-Glaser Date: Mon, 30 Aug 2010 19:32:31 +0000 (-0700) Subject: Use POC type 2 for streams with no B-frames X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a67e619bcdabecb03e7d44d86615157e3a3d00f2;p=x264.git Use POC type 2 for streams with no B-frames Saves a few bits per slice header. --- diff --git a/encoder/set.c b/encoder/set.c index 2c936182..2b3bbce4 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -135,7 +135,7 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param ) while( (1 << sps->i_log2_max_frame_num) <= max_frame_num ) sps->i_log2_max_frame_num++; - sps->i_poc_type = 0; + sps->i_poc_type = param->i_bframe ? 0 : 2; if( sps->i_poc_type == 0 ) { int max_delta_poc = (param->i_bframe + 2) * (!!param->i_bframe_pyramid + 1) * 2;