Commit 62844f30 authored by Tristan Leteurtre's avatar Tristan Leteurtre

. Fix for dvb compilation

  . Fix in pes header generation
parent 21ffd8e3
......@@ -2,7 +2,7 @@
* dvbreader.h: file reader
*-------------------------------------------------------------------------------
* (c)1999-2002 VideoLAN
* $Id: dvbreader.h,v 1.1 2002/09/22 01:38:54 nitrox Exp $
* $Id: dvbreader.h,v 1.2 2002/12/27 00:18:14 tooney Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Tristan Leteutre <tooney@videolan.org>
......@@ -46,6 +46,7 @@ public:
virtual int Read(byte* pBuff, int iSize);
virtual int Seek(s64 iOffset, int bStartPos);
virtual int GetFrame(byte ** pBuff ,int iSize) { return 0;};
virtual s64 Size();
virtual s64 GetPos();
......
......@@ -2,7 +2,7 @@
* pes.cpp: PES facilities
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: pes.cpp,v 1.1 2002/12/11 17:32:58 tooney Exp $
* $Id: pes.cpp,v 1.2 2002/12/27 00:18:14 tooney Exp $
*
* Authors: Tristan Leteurtre <tooney@videolan.org>
*
......@@ -71,8 +71,8 @@ u8 C_PesPacket::BuildPacket(u64 Pts, u8 iPayloadType, byte * Payload, unsigned i
bData[1] = 0x00;
bData[2] = 0x01;
bData[3] = iPayloadType;
bData[4] = (m_iPesSize - 4) >> 8;
bData[5] = (m_iPesSize - 4) & 0xFF;
bData[4] = (m_iPesSize - 6) >> 8;
bData[5] = (m_iPesSize - 6) & 0xFF;
bData[6] = 0x80;
bData[7] = Pts ? 0x80 : 0; // PTS Flags or not
bData[8] = Pts ? 5 : 0; // Number of following bytes of the header
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment