mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed writing the PCR pid into the PMT in cPatPmtGenerator::GeneratePmt()
This commit is contained in:
parent
95c9d3cf51
commit
999df31b8d
@ -2500,3 +2500,7 @@ Valdemaras Pipiras <valdemaras@ambernet.lt>
|
||||
|
||||
Manuel Reimer <Manuel.Reimer@gmx.de>
|
||||
for fixing saving terminal settings when running in background
|
||||
|
||||
Rene van den Braken <rene@vandenbraken.name>
|
||||
for reporting a bug in writing the PCR pid into the PMT in
|
||||
cPatPmtGenerator::GeneratePmt()
|
||||
|
2
HISTORY
2
HISTORY
@ -6174,3 +6174,5 @@ Video Disk Recorder Revision History
|
||||
Reimer).
|
||||
- Fixed cFrameDetector::Analyze() to handle video streams where the frame type
|
||||
is not detectable from the first TS packet of a frame.
|
||||
- Fixed writing the PCR pid into the PMT in cPatPmtGenerator::GeneratePmt()
|
||||
(reported by Rene van den Braken).
|
||||
|
7
remux.c
7
remux.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: remux.c 2.27 2009/11/01 12:25:17 kls Exp $
|
||||
* $Id: remux.c 2.28 2009/11/01 15:33:32 kls Exp $
|
||||
*/
|
||||
|
||||
#include "remux.h"
|
||||
@ -295,6 +295,7 @@ void cPatPmtGenerator::GeneratePmt(cChannel *Channel)
|
||||
numPmtPackets = 0;
|
||||
if (Channel) {
|
||||
int Vpid = Channel->Vpid();
|
||||
int Ppid = Channel->Ppid();
|
||||
uchar *p = buf;
|
||||
int i = 0;
|
||||
p[i++] = 0x02; // table id
|
||||
@ -306,8 +307,8 @@ void cPatPmtGenerator::GeneratePmt(cChannel *Channel)
|
||||
p[i++] = 0xC1 | (pmtVersion << 1); // dummy (2), version number (5), current/next indicator (1)
|
||||
p[i++] = 0x00; // section number
|
||||
p[i++] = 0x00; // last section number
|
||||
p[i++] = 0xE0 | (Vpid >> 8); // dummy (3), PCR pid hi (5)
|
||||
p[i++] = Vpid; // PCR pid lo
|
||||
p[i++] = 0xE0 | (Ppid >> 8); // dummy (3), PCR pid hi (5)
|
||||
p[i++] = Ppid; // PCR pid lo
|
||||
p[i++] = 0xF0; // dummy (4), program info length hi (4)
|
||||
p[i++] = 0x00; // program info length lo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user