From a7b009755ef1e57ddb8fec960c01fe1ea20bbd16 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Tue, 16 Oct 2012 16:19:28 +0200 Subject: [PATCH] add missing fields --- mpeg/ts.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mpeg/ts.h b/mpeg/ts.h index c343916..175eee5 100644 --- a/mpeg/ts.h +++ b/mpeg/ts.h @@ -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;