]> git.sesse.net Git - x264/commitdiff
Use POC type 0 for AVC-Intra
authorKieran Kunhya <kierank@ob-encoder.com>
Tue, 20 Jan 2015 15:38:00 +0000 (09:38 -0600)
committerAnton Mitrofanov <BugMaster@narod.ru>
Mon, 23 Feb 2015 10:34:48 +0000 (13:34 +0300)
Based on a patch from Capella Systems

encoder/set.c

index c4b9d8d4f85f02b884167cda2eb397b8590a3a6e..0cdaf274d42ca96f6c92d87d33315f0e28317b16 100644 (file)
@@ -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;