summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-03 13:07:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-03 13:07:20 +0200
commita9b2afd28b878f932f98983e5e4e4f780ac6a7fe (patch)
tree479d2830d1508fe75288b0e85c2c2bb24f866a6b /remux.c
parentb41adae497b395d66cbca978a0b1b557aebda070 (diff)
downloadvdr-a9b2afd28b878f932f98983e5e4e4f780ac6a7fe.tar.gz
vdr-a9b2afd28b878f932f98983e5e4e4f780ac6a7fe.tar.bz2
Support for two audio channels
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/remux.c b/remux.c
index 6212ff07..1fdb579d 100644
--- a/remux.c
+++ b/remux.c
@@ -8,7 +8,7 @@
* the Linux DVB driver's 'tuxplayer' example and were rewritten to suit
* VDR's needs.
*
- * $Id: remux.c 1.2 2001/05/27 10:27:15 kls Exp $
+ * $Id: remux.c 1.3 2001/06/02 15:39:16 kls Exp $
*/
/* The calling interface of the 'cRemux::Process()' function is defined
@@ -135,6 +135,7 @@ public:
cTS2PES(uint8_t *ResultBuffer, int *ResultCount, int Size);
~cTS2PES();
void ts_to_pes(const uint8_t *Buf); // don't need count (=188)
+ void Clear(void);
};
uint8_t cTS2PES::headr[] = { 0x00, 0x00, 0x01 };
@@ -156,6 +157,11 @@ cTS2PES::~cTS2PES()
delete buf;
}
+void cTS2PES::Clear(void)
+{
+ reset_ipack();
+}
+
void cTS2PES::store(uint8_t *Data, int Count)
{
//XXX overflow check???
@@ -455,6 +461,14 @@ int cRemux::ScanVideoPacket(const uchar *Data, int Count, int Offset, uchar &Pic
return -1;
}
+void cRemux::SetAudioPid(int APid)
+{
+ aPid = APid;
+ vTS2PES->Clear();
+ aTS2PES->Clear();
+ resultCount = resultDelivered = 0;
+}
+
const uchar *cRemux::Process(const uchar *Data, int &Count, int &Result, uchar *PictureType)
{
uchar dummyPictureType;