Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
ts.h: add defines for scrambling_control
· d9f6e999
Rafaël Carré
authored
Jan 15, 2019
d9f6e999
Merge branch 'funman-csa'
· 5dcd90ab
Christophe Massiot
authored
Jan 18, 2019
5dcd90ab
Hide whitespace changes
Inline
Side-by-side
mpeg/ts.h
View file @
5dcd90ab
...
...
@@ -150,6 +150,11 @@ static inline uint8_t ts_get_adaptation(const uint8_t *p_ts)
return
p_ts
[
4
];
}
/* not technically defined in ISO-13818, but this seems to be the industry consensus */
#define TS_SCRAMBLING_CLEAR 0
#define TS_SCRAMBLING_EVEN 2
#define TS_SCRAMBLING_ODD 3
static
inline
void
ts_set_scrambling
(
uint8_t
*
p_ts
,
uint8_t
i_scrambling
)
{
p_ts
[
3
]
&=
~
0xc0
;
...
...