From d9f6e99917ec4ab9e96bc3b5580e2721a678a546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 15 Jan 2019 14:51:09 +0100 Subject: [PATCH] ts.h: add defines for scrambling_control --- mpeg/ts.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mpeg/ts.h b/mpeg/ts.h index fba5e13..404d9b3 100644 --- a/mpeg/ts.h +++ b/mpeg/ts.h @@ -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;