[vlc-commits] [Git][videolan/vlc][master] codec: cc: fix mask size for 708 captions
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jul 31 14:04:45 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7c5cd6e7 by François Cartegnie at 2025-07-31T13:20:51+00:00
codec: cc: fix mask size for 708 captions
refs #29219
- - - - -
1 changed file:
- modules/codec/cc.h
Changes:
=====================================
modules/codec/cc.h
=====================================
@@ -158,7 +158,7 @@ static inline void cc_ProbeCEA708OneByte( cc_data_t *c, bool b_start, const uint
uint8_t i_extsid = cc & 0x3F;
if( i_extsid >= 0x07 )
{
- const uint8_t mask = (1 << --i_extsid);
+ const uint64_t mask = (INT64_C(1) << --i_extsid);
c->i_708channels |= (mask + (mask - 1));
}
if( c->cea708.sid_bs == 0 )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7c5cd6e7361fac223232b5d949c6cf27945c219e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7c5cd6e7361fac223232b5d949c6cf27945c219e
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