[bTSstream-devel] [Git][videolan/bitstream][master] 6 commits: add descs_add_desc
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Mon Aug 28 15:15:16 UTC 2023
Christophe Massiot pushed to branch master at VideoLAN / bitstream
Commits:
871eeb7c by Arnaud de Turckheim at 2022-01-17T14:22:40+01:00
add descs_add_desc
- - - - -
6443f92a by Clément Vasseur at 2023-08-28T17:14:43+02:00
h265: fix hvcc min_spatial_segmentation_idc size
- - - - -
d7ec0f64 by James Darnley at 2023-08-28T17:14:43+02:00
rtp: do not clobber marker bit when setting payload type
- - - - -
04fddfa9 by Evgeny Ermakov at 2023-08-28T17:14:43+02:00
mpeg/psi: Eliminate duplicated code
- - - - -
1e264580 by Christophe Massiot at 2023-08-28T17:14:43+02:00
dvb/si/datetime: add helpers for duration in minutes (desc 58)
- - - - -
84224dd4 by Christophe Massiot at 2023-08-28T17:15:05+02:00
Merge branch 'quarium-mpeg/descs'
- - - - -
1 changed file:
- mpeg/psi/descriptors.h
Changes:
=====================================
mpeg/psi/descriptors.h
=====================================
@@ -203,6 +203,18 @@ static inline bool descs_validate(const uint8_t *p_descs)
descs_get_length(p_descs));
}
+static inline uint8_t *descs_add_desc(uint8_t *p_descs, uint16_t i_desc_length)
+{
+ if (!descs_validate(p_descs) || i_desc_length < DESC_HEADER_SIZE)
+ return NULL;
+ uint16_t i_length = descs_get_length(p_descs);
+ descs_set_length(p_descs, i_length + i_desc_length);
+ uint8_t *p_desc = p_descs + DESCS_HEADER_SIZE + i_length;
+ desc_set_tag(p_desc, 0);
+ desc_set_length(p_desc, i_length - DESC_HEADER_SIZE);
+ return p_descs + DESCS_HEADER_SIZE + i_length;
+}
+
#ifdef __cplusplus
}
#endif
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/2dc1712789687d90f4b28ea60a5cd39e332495e9...84224dd4459ee790190132d5831a16073c30a9ef
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/2dc1712789687d90f4b28ea60a5cd39e332495e9...84224dd4459ee790190132d5831a16073c30a9ef
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the biTStream-devel
mailing list