annotate src/ffmpeg/libavformat/allformats.c @ 844:80e7162bd968 trunk

[svn] - seek is implemented as it should be, but appears to not work
author nenolod
date Mon, 12 Mar 2007 18:53:58 -0700
parents 9b50e71f7307
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
808
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
1 /*
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
2 * Register all the formats and protocols
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
4 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
5 * This file is part of FFmpeg.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
6 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
11 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
15 * Lesser General Public License for more details.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
16 *
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
20 */
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
21 #include "avformat.h"
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
22 #include "allformats.h"
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
23
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
24 /* If you do not call this function, then you can select exactly which
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
25 formats you want to support */
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
26
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
27 /**
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
28 * Initialize libavcodec and register all the codecs and formats.
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
29 */
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
30 void av_register_all(void)
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
31 {
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
32 static int inited = 0;
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
33
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
34 if (inited != 0)
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
35 return;
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
36 inited = 1;
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
37
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
38 avcodec_init();
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
39 avcodec_register_all();
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
40
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
41 av_register_input_format(&asf_demuxer);
837
b56c417fbf84 [svn] - shorten support
nenolod
parents: 833
diff changeset
42 av_register_input_format(&shorten_demuxer);
841
9b50e71f7307 [svn] - implement shorten support more correctly.
nenolod
parents: 837
diff changeset
43 av_register_input_format(&wav_demuxer);
837
b56c417fbf84 [svn] - shorten support
nenolod
parents: 833
diff changeset
44
808
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
45 register_protocol(&file_protocol);
e8776388b02a [svn] - add ffmpeg
nenolod
parents:
diff changeset
46 }