1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2001, 2002 the VideoLAN team
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * Eric Petit <titer@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #define PES_PROGRAM_STREAM_MAP 0xbc
26 #define PES_PRIVATE_STREAM_1 0xbd
27 #define PES_PADDING 0xbe
28 #define PES_PRIVATE_STREAM_2 0xbf
31 #define PES_PROGRAM_STREAM_DIRECTORY 0xff
32 #define PES_DSMCC_STREAM 0xf2
33 #define PES_ITU_T_H222_1_TYPE_E_STREAM 0xf8
35 #define PES_PAYLOAD_SIZE_MAX 65500
37 int E_( EStoPES )( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
38 es_format_t *p_fmt, int i_stream_id,
39 int b_mpeg2, int b_data_alignment, int i_header_size,