[bTSstream-devel] [Git][videolan/bitstream][master] 9 commits: mpeg/psi: Eliminate duplicated code

Christophe Massiot (@cmassiot) gitlab at videolan.org
Sun Aug 6 16:35:44 UTC 2023



Christophe Massiot pushed to branch master at VideoLAN / bitstream


Commits:
68e0bcb9 by Evgeny Ermakov at 2021-01-15T08:11:41+11:00
mpeg/psi: Eliminate duplicated code

- - - - -
f1c5a828 by Kieran Kunhya at 2023-08-06T18:33:23+02:00
scte104: Add bounds checking to validate functions

- - - - -
de24d64f by Kieran Kunhya at 2023-08-06T18:33:23+02:00
smpte: Add SMPTE 334 header

- - - - -
6974ea42 by Kieran Kunhya at 2023-08-06T18:33:23+02:00
scte104: Add reserved field

- - - - -
09a9f236 by Kieran Kunhya at 2023-08-06T18:33:23+02:00
scte104: Add TCP request/response fields

- - - - -
f6bd771b by James Darnley at 2023-08-06T18:33:23+02:00
ethernet: add vlan functions

- - - - -
5b54cf50 by Clément Vasseur at 2023-08-06T18:33:23+02:00
h265: fix hvcc min_spatial_segmentation_idc size

- - - - -
5c6b36e9 by James Darnley at 2023-08-06T18:33:23+02:00
rtp: do not clobber marker bit when setting payload type

- - - - -
40a3886f by Christophe Massiot at 2023-08-06T18:35:31+02:00
Merge branch 'unspecd-psi'

- - - - -


1 changed file:

- mpeg/psi/psi.h


Changes:

=====================================
mpeg/psi/psi.h
=====================================
@@ -260,7 +260,7 @@ static inline uint8_t psi_get_lastsection(const uint8_t *p_section)
 static inline void psi_set_crc(uint8_t *p_section)
 {
     uint32_t i_crc = 0xffffffff;
-    uint16_t i_end = (((p_section[1] & 0xf) << 8) | p_section[2])
+    uint16_t i_end = psi_get_length(p_section)
                       + PSI_HEADER_SIZE - PSI_CRC_SIZE;
     uint16_t i;
 
@@ -276,7 +276,7 @@ static inline void psi_set_crc(uint8_t *p_section)
 static inline bool psi_check_crc(const uint8_t *p_section)
 {
     uint32_t i_crc = 0xffffffff;
-    uint16_t i_end = (((p_section[1] & 0xf) << 8) | p_section[2])
+    uint16_t i_end = psi_get_length(p_section)
                       + PSI_HEADER_SIZE - PSI_CRC_SIZE;
     uint16_t i;
 



View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/6fde29f03561f29ef57f283b3f1527ded213e5c7...40a3886f62e7f0dda790f4de46110bd5af640bcb

-- 
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/6fde29f03561f29ef57f283b3f1527ded213e5c7...40a3886f62e7f0dda790f4de46110bd5af640bcb
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