* updated libkomparediff2 (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / vdr / vdr-streamdev / pid-mask.patch
blob63b0cb8bd2d46c6890ec71a8601600636bb5ee73
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../vdr-streamdev/pid-mask.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
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
19 @@ -225,7 +225,7 @@
20 while (Running()) {
21 const uchar *block = m_TSBuffer->Get();
22 if (block) {
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;
27 int len = block[4];
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
30 @@ -20,7 +20,7 @@
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)