1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../vdr-streamdev/pid-mask.patch
5 # Copyright (C) 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./client/filter.c.orig 2008-03-31 10:38:01.000000000 +0000
18 +++ ./client/filter.c 2009-05-03 16:49:25.000000000 +0000
21 const uchar *block = m_TSBuffer->Get();
23 - u_short pid = (((u_short)block[1] & PID_MASK_HI) << 8) | block[2];
24 + u_short pid = (((u_short)block[1] & TS_PID_MASK_HI) << 8) | block[2];
25 u_char tid = block[3];
26 bool Pusi = block[1] & 0x40;
28 --- ./remux/tsremux.c.orig 2008-03-31 10:38:03.000000000 +0000
29 +++ ./remux/tsremux.c 2009-05-03 16:49:43.000000000 +0000
32 int cTSRemux::GetPid(const uchar *Data)
34 - return (((uint16_t)Data[0] & PID_MASK_HI) << 8) | (Data[1] & 0xFF);
35 + return (((uint16_t)Data[0] & TS_PID_MASK_HI) << 8) | (Data[1] & 0xFF);
38 int cTSRemux::GetPacketLength(const uchar *Data, int Count, int Offset)