[vlc-commits] packetizer: hevc: add poc HandleCraAsBlaFlag param

Francois Cartegnie git at videolan.org
Thu Dec 14 14:06:31 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 14 12:50:59 2017 +0100| [5999e68dcdc1d44c404ea424e4b3f35d8df323aa] | committer: Francois Cartegnie

packetizer: hevc: add poc HandleCraAsBlaFlag param

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5999e68dcdc1d44c404ea424e4b3f35d8df323aa
---

 modules/packetizer/hevc_nal.c | 3 ++-
 modules/packetizer/hevc_nal.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index 6ff8166dd7..66d568c324 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -1467,7 +1467,8 @@ int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps
                            p_slice->nal_type == HEVC_NAL_IDR_W_RADL ||
                            p_slice->nal_type == HEVC_NAL_BLA_W_LP ||
                            p_slice->nal_type == HEVC_NAL_BLA_W_RADL ||
-                           p_slice->nal_type == HEVC_NAL_BLA_N_LP);
+                           p_slice->nal_type == HEVC_NAL_BLA_N_LP ||
+                           p_ctx->HandleCraAsBlaFlag );
     }
     else
     {
diff --git a/modules/packetizer/hevc_nal.h b/modules/packetizer/hevc_nal.h
index 13e4deb6a2..cbba2127ee 100644
--- a/modules/packetizer/hevc_nal.h
+++ b/modules/packetizer/hevc_nal.h
@@ -248,6 +248,7 @@ typedef struct
         int msb;
     } prevPicOrderCnt, prevTid0PicOrderCnt;
 
+    bool HandleCraAsBlaFlag;
     bool first_picture; /* Must be set on start or on NAL_EOS */
 } hevc_poc_ctx_t;
 



More information about the vlc-commits mailing list