Browse Source

Merge branch 'funman-csa'

master
Christophe Massiot 6 years ago
parent
commit
5dcd90ab9a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mpeg/ts.h

+ 5
- 0
mpeg/ts.h View File

@ -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;

Loading…
Cancel
Save