[vlc-commits] [Git][videolan/vlc][master] packetizers: allow inclusion HXXX NAL helpers from C++ code

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Feb 28 07:52:33 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c254ee46 by Steve Lhomme at 2023-02-28T07:35:45+00:00
packetizers: allow inclusion HXXX NAL helpers from C++ code

- - - - -


2 changed files:

- modules/packetizer/h264_nal.h
- modules/packetizer/hevc_nal.h


Changes:

=====================================
modules/packetizer/h264_nal.h
=====================================
@@ -24,6 +24,10 @@
 # include <vlc_es.h>
 # include <vlc_bits.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define PROFILE_H264_BASELINE             66
 #define PROFILE_H264_MAIN                 77
 #define PROFILE_H264_EXTENDED             88
@@ -222,4 +226,8 @@ typedef struct
 
 bool h264_decode_sei_recovery_point( bs_t *, h264_sei_recovery_point_t * );
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* H264_NAL_H */


=====================================
modules/packetizer/hevc_nal.h
=====================================
@@ -23,6 +23,10 @@
 # include <vlc_es.h>
 # include <vlc_bits.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define HEVC_VPS_ID_MAX 15
 #define HEVC_SPS_ID_MAX 15
 #define HEVC_PPS_ID_MAX 63
@@ -387,4 +391,8 @@ uint8_t hevc_get_num_clock_ts( const hevc_sequence_parameter_set_t *,
 bool hevc_frame_is_progressive( const hevc_sequence_parameter_set_t *,
                                 const hevc_sei_pic_timing_t * /* can be NULL */);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* HEVC_NAL_H */



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c254ee46eacad98d0d938776656649f62c0ede70

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c254ee46eacad98d0d938776656649f62c0ede70
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list