From c3ba2a8c595b1bb36da55b82f7f4046471349d0e Mon Sep 17 00:00:00 2001 From: Kieran Kunhya Date: Tue, 20 Jan 2015 09:38:00 -0600 Subject: [PATCH] Use POC type 0 for AVC-Intra Based on a patch from Capella Systems --- encoder/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/set.c b/encoder/set.c index c4b9d8d4..0cdaf274 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -166,7 +166,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 = param->i_bframe || param->b_interlaced ? 0 : 2; + sps->i_poc_type = param->i_bframe || param->b_interlaced || param->i_avcintra_class ? 0 : 2; if( sps->i_poc_type == 0 ) { int max_delta_poc = (param->i_bframe + 2) * (!!param->i_bframe_pyramid + 1) * 2; -- 2.40.0