Implemented support for MTD

This commit is contained in:
Klaus Schmidinger
2017-03-18 16:33:59 +01:00
parent 3f9cdea1c1
commit 2cc25e65f4
10 changed files with 969 additions and 104 deletions

View File

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