[bTSstream-devel] [Git][videolan/bitstream][master] 3 commits: ietf/rfc8331: add constants/defines

Christophe Massiot (@cmassiot) gitlab at videolan.org
Sat Nov 8 16:07:37 UTC 2025



Christophe Massiot pushed to branch master at VideoLAN / bitstream


Commits:
89f363cb by James Darnley at 2025-11-04T16:10:01+01:00
ietf/rfc8331: add constants/defines

Values relating to Line_Number and Horizontal_Offset.

- - - - -
01ef3f1c by Terje Gundersen at 2025-11-08T17:07:26+01:00
scte/35: fix sign warnings

This resolves the following (6) warnings, emitted when compiling the
make target 'examples' without -Wno-sign-compare and with -Wall.

In file included from dvb_gen_si.c:44:
./bitstream/scte/35.h: In function ‘scte35_insert_validate’:
./bitstream/scte/35.h:550:22: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘int’ [-Wsign-compare]

./bitstream/scte/35.h:578:25: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘long int’ [-Wsign-compare]

./bitstream/scte/35.h:556:29: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘int’ [-Wsign-compare]

./bitstream/scte/35.h:580:21: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘long int’ [-Wsign-compare]

./bitstream/scte/35.h:561:25: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘int’ [-Wsign-compare]

./bitstream/scte/35.h:578:25: warning: comparison of integer expressions
of different signedness: ‘size_t’ {aka ‘long unsigned int’} and
‘long int’ [-Wsign-compare]

This change ought not to change any logic, but merely preserve the
existing one whilst formalizing the behavior in such a way that the
compiler is made painfully aware of our intent prompting it to stop
emitting the warnings.

- - - - -
86b69cb0 by Christophe Massiot at 2025-11-08T17:07:33+01:00
Merge branch 'JDarnley-master'

- - - - -


1 changed file:

- ietf/rfc8331.h


Changes:

=====================================
ietf/rfc8331.h
=====================================
@@ -50,6 +50,15 @@ extern "C"
 #define RFC_8331_F_FIELD_1 2
 #define RFC_8331_F_FIELD_2 3
 
+#define RFC_8331_LINE_WITHOUT_SPECIFIC 0x7ff
+#define RFC_8331_LINE_AFTER_SWITCHING 0x7fe
+#define RFC_8331_LINE_TOO_LARGE 0x7fd
+
+#define RFC_8331_HORIZONTAL_WITHOUT_SPECIFIC 0xfff
+#define RFC_8331_HORIZONTAL_HANC 0xffe
+#define RFC_8331_HORIZONTAL_VANC 0xffd
+#define RFC_8331_HORIZONTAL_TOO_LARGE 0xffc
+
 /*  
  * 0                   1                   2                   3
  * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1



View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/90524f5da17006659f77ab723ab21ad0c442d43e...86b69cb089119668e9094fbc5526544ee00dc78e

-- 
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/90524f5da17006659f77ab723ab21ad0c442d43e...86b69cb089119668e9094fbc5526544ee00dc78e
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