[x264-devel] Use POC type 0 for AVC-Intra

Kieran Kunhya git at videolan.org
Tue Feb 24 20:37:44 CET 2015


x264 | branch: master | Kieran Kunhya <kierank at ob-encoder.com> | Tue Jan 20 09:38:00 2015 -0600| [c3ba2a8c595b1bb36da55b82f7f4046471349d0e] | committer: Anton Mitrofanov

Use POC type 0 for AVC-Intra

Based on a patch from Capella Systems

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c3ba2a8c595b1bb36da55b82f7f4046471349d0e
---

 encoder/set.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoder/set.c b/encoder/set.c
index c4b9d8d..0cdaf27 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;



More information about the x264-devel mailing list