[vlc-commits] packetizer: hevc_nal: add poc initializer helper
Francois Cartegnie
git at videolan.org
Tue Oct 3 12:11:31 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct 2 13:45:52 2017 +0200| [6c5cfc7010b3ad3daf07d96f7eda489e1e3712ac] | committer: Francois Cartegnie
packetizer: hevc_nal: add poc initializer helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c5cfc7010b3ad3daf07d96f7eda489e1e3712ac
---
modules/packetizer/hevc_nal.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/packetizer/hevc_nal.h b/modules/packetizer/hevc_nal.h
index 0b6ceeafdd..9035c64f80 100644
--- a/modules/packetizer/hevc_nal.h
+++ b/modules/packetizer/hevc_nal.h
@@ -209,6 +209,13 @@ typedef struct
bool first_picture; /* Must be set on start or on NAL_EOS */
} hevc_poc_ctx_t;
+static inline void hevc_poc_cxt_init( hevc_poc_ctx_t *p_ctx )
+{
+ p_ctx->prevPicOrderCnt.lsb = 0;
+ p_ctx->prevPicOrderCnt.msb = 0;
+ p_ctx->first_picture = true;
+}
+
int hevc_compute_picture_order_count( const hevc_sequence_parameter_set_t *p_sps,
const hevc_slice_segment_header_t *slice,
hevc_poc_ctx_t *ctx );
More information about the vlc-commits
mailing list