~ubuntu-branches/ubuntu/hardy/avidemux/hardy

« back to all changes in this revision

Viewing changes to avidemux/ADM_mplex/padstrm.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2007-12-18 13:53:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218135304-cdqec2lg2bglyz15
Tags: 1:2.4~preview3-0.0ubuntu1
* Upload to Ubuntu. (LP: #163287, LP: #126572)
* debian/changelog: re-added Ubuntu releases.
* debian/control:
  - Require debhelper >= 5.0.51 (for dh_icons) and imagemagick.
  - Build-depend on libsdl1.2-dev instead of libsdl-dev.
  - Build against newer libx264-dev. (LP: #138854)
  - Removed libamrnb-dev, not in Ubuntu yet.
* debian/rules:
  - Install all icon sizes, using convert (upstream installs none).
  - Added missing calls to dh_installmenu, dh_installman, dh_icons and
    dh_desktop.
* debian/menu, debian/avidemux-qt.menu:
  - Corrected package and executable names.
* debian/avidemux-common.install: Install icons.
* debian/avidemux.common.manpages: Install man/avidemux.1.
* debian/links, debian/avidemux-cli.links, debian/avidemux-gtk.links:
  - Link manpages to avidemux.1.gz.
* debian/install, debian/avidemux-qt.install, debian/avidemux-gtk.desktop,
  debian/avidemux-qt.desktop: Install desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/*
3
 
 *  padstrm.cc:  Padding stream pseudo-input streams
4
 
 *
5
 
 *  Copyright (C) 2001 Andrew Stevens <andrew.stevens@philips.com>
6
 
 *
7
 
 *
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.
11
 
 *
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.
16
 
 *
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.
20
 
 */
21
 
 
22
 
 
23
 
#ifdef HAVE_CONFIG_H
24
 
#include "config.h"
25
 
#endif
26
 
 
27
 
#include "padstrm.hpp"
28
 
 
29
 
 
30
 
 
31
 
//
32
 
// Generator for padding packets in a padding stream...
33
 
//
34
 
 
35
 
 
36
 
unsigned int PaddingStream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
37
 
{
38
 
        memset( dst, 0, to_read );
39
 
        return to_read;
40
 
}
41
 
 
42
 
unsigned int VCDAPadStream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
43
 
{
44
 
        memset( dst, STUFFING_BYTE, to_read );
45
 
        return to_read;
46
 
}
47
 
 
48
 
unsigned int DVDPriv2Stream::ReadPacketPayload(uint8_t *dst, unsigned int to_read)
49
 
{
50
 
        memset( dst, 0, to_read );
51
 
        return to_read;
52
 
}
53
 
 
54
 
/* 
55
 
 * Local variables:
56
 
 *  c-file-style: "stroustrup"
57
 
 *  tab-width: 4
58
 
 *  indent-tabs-mode: nil
59
 
 * End:
60
 
 */