Browse Source

add missing fields

master
Christophe Massiot 12 years ago
parent
commit
a7b009755e
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      mpeg/ts.h

+ 10
- 0
mpeg/ts.h View File

@ -67,6 +67,11 @@ static inline void ts_init(uint8_t *p_ts)
p_ts[3] = 0x0;
}
static inline void ts_set_transporterror(uint8_t *p_ts)
{
p_ts[1] |= 0x80;
}
static inline bool ts_get_transporterror(const uint8_t *p_ts)
{
return !!(p_ts[1] & 0x80);
@ -211,6 +216,11 @@ static inline void tsaf_set_discontinuity(uint8_t *p_ts)
p_ts[5] |= 0x80;
}
static inline bool tsaf_has_discontinuity(const uint8_t *p_ts)
{
return !!(p_ts[5] & 0x80);
}
static inline void tsaf_set_randomaccess(uint8_t *p_ts)
{
p_ts[5] |= 0x40;

Loading…
Cancel
Save