demux: libavi: force chunk type check
[vlc.git] / modules / demux / avformat / avformat.c
blob8025a898b69656130dc5a3b4833ad4c27f4d6dc3
1 /*****************************************************************************
2 * avformat.c: demuxer and muxer using libavformat library
3 *****************************************************************************
4 * Copyright (C) 1999-2008 VLC authors and VideoLAN
5 * $Id$
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * Gildas Bazin <gbazin@videolan.org>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #ifndef MERGE_FFMPEG
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
30 #include <vlc_common.h>
31 #include <vlc_plugin.h>
33 #include "avformat.h"
34 #include "../../codec/avcodec/avcommon.h"
36 vlc_module_begin ()
37 #endif /* MERGE_FFMPEG */
38 add_shortcut( "ffmpeg", "avformat" )
39 set_category( CAT_INPUT )
40 set_subcategory( SUBCAT_INPUT_DEMUX )
41 set_description( N_("Avformat demuxer" ) )
42 set_shortname( N_("Avformat") )
43 set_capability( "demux", 2 )
44 set_callbacks( avformat_OpenDemux, avformat_CloseDemux )
45 set_section( N_("Demuxer"), NULL )
46 add_string( "avformat-format", NULL, FORMAT_TEXT, FORMAT_LONGTEXT, true )
47 add_obsolete_string("ffmpeg-format") /* removed since 2.1.0 */
48 add_string( "avformat-options", NULL, AV_OPTIONS_TEXT, AV_OPTIONS_LONGTEXT, true )
50 #ifdef ENABLE_SOUT
51 /* mux submodule */
52 add_submodule ()
53 add_shortcut( "ffmpeg", "avformat" )
54 set_description( N_("Avformat muxer" ) )
55 set_capability( "sout mux", 2 )
56 set_section( N_("Muxer"), NULL )
57 add_string( "sout-avformat-mux", NULL, MUX_TEXT, MUX_LONGTEXT, true )
58 add_obsolete_string("ffmpeg-mux") /* removed since 2.1.0 */
59 add_string( "sout-avformat-options", NULL, AV_OPTIONS_TEXT, AV_OPTIONS_LONGTEXT, true )
60 set_callbacks( avformat_OpenMux, avformat_CloseMux )
61 #endif
62 #ifndef MERGE_FFMPEG
63 vlc_module_end ()
64 #endif