From 2cc25e65f445162fad126f4e4b29bc380e002c0f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 18 Mar 2017 16:33:59 +0100 Subject: Implemented support for MTD --- remux.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'remux.h') diff --git a/remux.h b/remux.h index 5eab076f..28dfde4b 100644 --- a/remux.h +++ b/remux.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.h 4.1 2016/12/22 13:09:54 kls Exp $ + * $Id: remux.h 4.2 2017/02/27 16:11:57 kls Exp $ */ #ifndef __REMUX_H @@ -83,6 +83,12 @@ inline int TsPid(const uchar *p) return (p[1] & TS_PID_MASK_HI) * 256 + p[2]; } +inline void TsSetPid(uchar *p, int Pid) +{ + p[1] = (p[1] & ~TS_PID_MASK_HI) | ((Pid >> 8) & TS_PID_MASK_HI); + p[2] = Pid & 0x00FF; +} + inline bool TsIsScrambled(const uchar *p) { return p[3] & TS_SCRAMBLING_CONTROL; -- cgit v1.2.3