~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libavformat/ffm.c

  • Committer: William Grant
  • Date: 2007-02-03 03:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: william.grant@ubuntu.org.au-20070203031607-08gc2ompbz6spt9i
Update to 1.0rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * FFM (ffserver live feed) encoder and decoder
3
3
 * Copyright (c) 2001 Fabrice Bellard.
4
4
 *
5
 
 * This library is free software; you can redistribute it and/or
 
5
 * This file is part of FFmpeg.
 
6
 *
 
7
 * FFmpeg is free software; you can redistribute it and/or
6
8
 * modify it under the terms of the GNU Lesser General Public
7
9
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
 
10
 * version 2.1 of the License, or (at your option) any later version.
9
11
 *
10
 
 * This library is distributed in the hope that it will be useful,
 
12
 * FFmpeg is distributed in the hope that it will be useful,
11
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
15
 * Lesser General Public License for more details.
14
16
 *
15
17
 * You should have received a copy of the GNU Lesser General Public
16
 
 * License along with this library; if not, write to the Free Software
 
18
 * License along with FFmpeg; if not, write to the Free Software
17
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
20
 */
19
21
#include "avformat.h"
761
763
    return 0;
762
764
}
763
765
 
764
 
static AVInputFormat ffm_iformat = {
 
766
#ifdef CONFIG_FFM_DEMUXER
 
767
AVInputFormat ffm_demuxer = {
765
768
    "ffm",
766
769
    "ffm format",
767
770
    sizeof(FFMContext),
771
774
    ffm_read_close,
772
775
    ffm_seek,
773
776
};
774
 
 
775
 
#ifdef CONFIG_MUXERS
776
 
static AVOutputFormat ffm_oformat = {
 
777
#endif
 
778
#ifdef CONFIG_FFM_MUXER
 
779
AVOutputFormat ffm_muxer = {
777
780
    "ffm",
778
781
    "ffm format",
779
782
    "",
786
789
    ffm_write_packet,
787
790
    ffm_write_trailer,
788
791
};
789
 
#endif //CONFIG_MUXERS
790
 
 
791
 
int ffm_init(void)
792
 
{
793
 
    av_register_input_format(&ffm_iformat);
794
 
#ifdef CONFIG_MUXERS
795
 
    av_register_output_format(&ffm_oformat);
796
 
#endif //CONFIG_MUXERS
797
 
    return 0;
798
 
}
 
792
#endif //CONFIG_FFM_MUXER