3
* padstrm.cc: Padding stream pseudo-input streams
5
* Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of version 2 of the GNU General Public License
10
* as published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
#include "padstrm.hpp"
32
// Generator for padding packets in a padding stream...
36
unsigned int PaddingStream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
38
memset( dst, 0, to_read );
42
unsigned int VCDAPadStream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
44
memset( dst, STUFFING_BYTE, to_read );
48
unsigned int DVDPriv2Stream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
50
memset( dst, 0, to_read );
56
* c-file-style: "stroustrup"
58
* indent-tabs-mode: nil