# HG changeset patch # User mru # Date 1152488453 0 # Node ID d89d7ef290da12fb0feefb3d7ea2d899e18e12ce # Parent e89500dd90644001b75a7e3d6c567481840a696b give AVInput/OutputFormat structs consistent names diff -r e89500dd9064 -r d89d7ef290da 4xm.c --- a/4xm.c Sun Jul 09 10:33:49 2006 +0000 +++ b/4xm.c Sun Jul 09 23:40:53 2006 +0000 @@ -318,7 +318,7 @@ return 0; } -static AVInputFormat fourxm_iformat = { +static AVInputFormat fourxm_demuxer = { "4xm", "4X Technologies format", sizeof(FourxmDemuxContext), @@ -330,6 +330,6 @@ int fourxm_init(void) { - av_register_input_format(&fourxm_iformat); + av_register_input_format(&fourxm_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da adtsenc.c --- a/adtsenc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/adtsenc.c Sun Jul 09 23:40:53 2006 +0000 @@ -107,7 +107,7 @@ return 0; } -static AVOutputFormat adts_oformat = { +static AVOutputFormat adts_muxer = { "adts", "ADTS AAC", "audio/aac", @@ -122,6 +122,6 @@ int ff_adts_init(void) { - av_register_output_format(&adts_oformat); + av_register_output_format(&adts_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da aiff.c --- a/aiff.c Sun Jul 09 10:33:49 2006 +0000 +++ b/aiff.c Sun Jul 09 23:40:53 2006 +0000 @@ -429,7 +429,7 @@ } -static AVInputFormat aiff_iformat = { +static AVInputFormat aiff_demuxer = { "aiff", "Audio IFF", 0, @@ -441,7 +441,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat aiff_oformat = { +static AVOutputFormat aiff_muxer = { "aiff", "Audio IFF", "audio/aiff", @@ -457,9 +457,9 @@ int ff_aiff_init(void) { - av_register_input_format(&aiff_iformat); + av_register_input_format(&aiff_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&aiff_oformat); + av_register_output_format(&aiff_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da allformats.h --- a/allformats.h Sun Jul 09 10:33:49 2006 +0000 +++ b/allformats.h Sun Jul 09 23:40:53 2006 +0000 @@ -2,11 +2,11 @@ #define ALLFORMATS_H /* mpeg.c */ -extern AVInputFormat mpegps_demux; +extern AVInputFormat mpegps_demuxer; int mpegps_init(void); /* mpegts.c */ -extern AVInputFormat mpegts_demux; +extern AVInputFormat mpegts_demuxer; int mpegts_init(void); /* rm.c */ @@ -87,7 +87,7 @@ int ffm_init(void); /* rtsp.c */ -extern AVInputFormat redir_demux; +extern AVInputFormat redir_demuxer; int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f); /* 4xm.c */ diff -r e89500dd9064 -r d89d7ef290da amr.c --- a/amr.c Sun Jul 09 10:33:49 2006 +0000 +++ b/amr.c Sun Jul 09 23:40:53 2006 +0000 @@ -215,7 +215,7 @@ return 0; } -static AVInputFormat amr_iformat = { +static AVInputFormat amr_demuxer = { "amr", "3gpp amr file format", 0, /*priv_data_size*/ @@ -226,7 +226,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat amr_oformat = { +static AVOutputFormat amr_muxer = { "amr", "3gpp amr file format", "audio/amr", @@ -242,9 +242,9 @@ int amr_init(void) { - av_register_input_format(&amr_iformat); + av_register_input_format(&amr_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&amr_oformat); + av_register_output_format(&amr_muxer); #endif return 0; } diff -r e89500dd9064 -r d89d7ef290da asf-enc.c --- a/asf-enc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/asf-enc.c Sun Jul 09 23:40:53 2006 +0000 @@ -823,7 +823,7 @@ return 0; } -AVOutputFormat asf_oformat = { +AVOutputFormat asf_muxer = { "asf", "asf format", "video/x-ms-asf", @@ -841,7 +841,7 @@ .flags = AVFMT_GLOBALHEADER, }; -AVOutputFormat asf_stream_oformat = { +AVOutputFormat asf_stream_muxer = { "asf_stream", "asf format", "video/x-ms-asf", diff -r e89500dd9064 -r d89d7ef290da asf.c --- a/asf.c Sun Jul 09 10:33:49 2006 +0000 +++ b/asf.c Sun Jul 09 23:40:53 2006 +0000 @@ -840,7 +840,7 @@ return 0; } -static AVInputFormat asf_iformat = { +static AVInputFormat asf_demuxer = { "asf", "asf format", sizeof(ASFContext), @@ -853,16 +853,16 @@ }; #ifdef CONFIG_MUXERS - extern AVOutputFormat asf_oformat; - extern AVOutputFormat asf_stream_oformat; + extern AVOutputFormat asf_muxer; + extern AVOutputFormat asf_stream_muxer; #endif //CONFIG_MUXERS int asf_init(void) { - av_register_input_format(&asf_iformat); + av_register_input_format(&asf_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&asf_oformat); - av_register_output_format(&asf_stream_oformat); + av_register_output_format(&asf_muxer); + av_register_output_format(&asf_stream_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da au.c --- a/au.c Sun Jul 09 10:33:49 2006 +0000 +++ b/au.c Sun Jul 09 23:40:53 2006 +0000 @@ -178,7 +178,7 @@ return 0; } -static AVInputFormat au_iformat = { +static AVInputFormat au_demuxer = { "au", "SUN AU Format", 0, @@ -190,7 +190,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat au_oformat = { +static AVOutputFormat au_muxer = { "au", "SUN AU Format", "audio/basic", @@ -206,9 +206,9 @@ int au_init(void) { - av_register_input_format(&au_iformat); + av_register_input_format(&au_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&au_oformat); + av_register_output_format(&au_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da audio.c --- a/audio.c Sun Jul 09 10:33:49 2006 +0000 +++ b/audio.c Sun Jul 09 23:40:53 2006 +0000 @@ -313,7 +313,7 @@ return 0; } -static AVInputFormat audio_in_format = { +static AVInputFormat audio_demuxer = { "audio_device", "audio grab and output", sizeof(AudioData), @@ -324,7 +324,7 @@ .flags = AVFMT_NOFILE, }; -static AVOutputFormat audio_out_format = { +static AVOutputFormat audio_muxer = { "audio_device", "audio grab and output", "", @@ -347,7 +347,7 @@ int audio_init(void) { - av_register_input_format(&audio_in_format); - av_register_output_format(&audio_out_format); + av_register_input_format(&audio_demuxer); + av_register_output_format(&audio_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da avformat.h --- a/avformat.h Sun Jul 09 10:33:49 2006 +0000 +++ b/avformat.h Sun Jul 09 23:40:53 2006 +0000 @@ -399,7 +399,7 @@ #include "rtsp.h" /* yuv4mpeg.c */ -extern AVOutputFormat yuv4mpegpipe_oformat; +extern AVOutputFormat yuv4mpegpipe_muxer; /* utils.c */ void av_register_input_format(AVInputFormat *format); diff -r e89500dd9064 -r d89d7ef290da avidec.c --- a/avidec.c Sun Jul 09 10:33:49 2006 +0000 +++ b/avidec.c Sun Jul 09 23:40:53 2006 +0000 @@ -923,7 +923,7 @@ return 0; } -static AVInputFormat avi_iformat = { +static AVInputFormat avi_demuxer = { "avi", "avi format", sizeof(AVIContext), @@ -936,6 +936,6 @@ int avidec_init(void) { - av_register_input_format(&avi_iformat); + av_register_input_format(&avi_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da avienc.c --- a/avienc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/avienc.c Sun Jul 09 23:40:53 2006 +0000 @@ -762,7 +762,7 @@ return res; } -static AVOutputFormat avi_oformat = { +static AVOutputFormat avi_muxer = { "avi", "avi format", "video/x-msvideo", @@ -777,7 +777,7 @@ int avienc_init(void) { - av_register_output_format(&avi_oformat); + av_register_output_format(&avi_muxer); return 0; } #endif //CONFIG_MUXERS diff -r e89500dd9064 -r d89d7ef290da avs.c --- a/avs.c Sun Jul 09 10:33:49 2006 +0000 +++ b/avs.c Sun Jul 09 23:40:53 2006 +0000 @@ -217,7 +217,7 @@ return 0; } -static AVInputFormat avs_iformat = { +static AVInputFormat avs_demuxer = { "avs", "avs format", sizeof(avs_format_t), @@ -232,7 +232,7 @@ int avs_init(void) { #ifdef CONFIG_DEMUXERS - av_register_input_format(&avs_iformat); + av_register_input_format(&avs_demuxer); #endif /* CONFIG_DEMUXERS */ return 0; } diff -r e89500dd9064 -r d89d7ef290da beosaudio.cpp --- a/beosaudio.cpp Sun Jul 09 10:33:49 2006 +0000 +++ b/beosaudio.cpp Sun Jul 09 23:40:53 2006 +0000 @@ -419,7 +419,7 @@ return 0; } -static AVInputFormat audio_in_format = { +static AVInputFormat audio_demuxer = { "audio_device", "audio grab and output", sizeof(AudioData), @@ -431,7 +431,7 @@ AVFMT_NOFILE, }; -AVOutputFormat audio_out_format = { +AVOutputFormat audio_muxer = { "audio_device", "audio grab and output", "", @@ -454,8 +454,8 @@ int audio_init(void) { main_thid = find_thread(NULL); - av_register_input_format(&audio_in_format); - av_register_output_format(&audio_out_format); + av_register_input_format(&audio_demuxer); + av_register_output_format(&audio_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da crc.c --- a/crc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/crc.c Sun Jul 09 23:40:53 2006 +0000 @@ -101,7 +101,7 @@ return 0; } -static AVOutputFormat crc_format = { +static AVOutputFormat crc_muxer = { "crc", "crc testing format", NULL, @@ -114,7 +114,7 @@ crc_write_trailer, }; -static AVOutputFormat framecrc_format = { +static AVOutputFormat framecrc_muxer = { "framecrc", "framecrc testing format", NULL, @@ -129,8 +129,8 @@ int crc_init(void) { - av_register_output_format(&crc_format); - av_register_output_format(&framecrc_format); + av_register_output_format(&crc_muxer); + av_register_output_format(&framecrc_muxer); return 0; } #endif /* CONFIG_MUXERS */ diff -r e89500dd9064 -r d89d7ef290da daud.c --- a/daud.c Sun Jul 09 10:33:49 2006 +0000 +++ b/daud.c Sun Jul 09 23:40:53 2006 +0000 @@ -43,7 +43,7 @@ return ret; } -static AVInputFormat daud_iformat = { +static AVInputFormat daud_demuxer = { "daud", "D-Cinema audio format", 0, @@ -57,7 +57,7 @@ int daud_init(void) { - av_register_input_format(&daud_iformat); + av_register_input_format(&daud_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da dc1394.c --- a/dc1394.c Sun Jul 09 10:33:49 2006 +0000 +++ b/dc1394.c Sun Jul 09 23:40:53 2006 +0000 @@ -180,7 +180,7 @@ return 0; } -static AVInputFormat dc1394_format = { +static AVInputFormat dc1394_demuxer = { .name = "dc1394", .long_name = "dc1394 A/V grab", .priv_data_size = sizeof(struct dc1394_data), @@ -192,6 +192,6 @@ int dc1394_init(void) { - av_register_input_format(&dc1394_format); + av_register_input_format(&dc1394_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da dv.c --- a/dv.c Sun Jul 09 10:33:49 2006 +0000 +++ b/dv.c Sun Jul 09 23:40:53 2006 +0000 @@ -1000,7 +1000,7 @@ } #endif /* CONFIG_MUXERS */ -static AVInputFormat dv_iformat = { +static AVInputFormat dv_demuxer = { "dv", "DV video format", sizeof(RawDVContext), @@ -1013,7 +1013,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat dv_oformat = { +static AVOutputFormat dv_muxer = { "dv", "DV video format", NULL, @@ -1029,9 +1029,9 @@ int ff_dv_init(void) { - av_register_input_format(&dv_iformat); + av_register_input_format(&dv_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&dv_oformat); + av_register_output_format(&dv_muxer); #endif return 0; } diff -r e89500dd9064 -r d89d7ef290da dv1394.c --- a/dv1394.c Sun Jul 09 10:33:49 2006 +0000 +++ b/dv1394.c Sun Jul 09 23:40:53 2006 +0000 @@ -227,7 +227,7 @@ return 0; } -static AVInputFormat dv1394_format = { +static AVInputFormat dv1394_demuxer = { .name = "dv1394", .long_name = "dv1394 A/V grab", .priv_data_size = sizeof(struct dv1394_data), @@ -239,6 +239,6 @@ int dv1394_init(void) { - av_register_input_format(&dv1394_format); + av_register_input_format(&dv1394_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da electronicarts.c --- a/electronicarts.c Sun Jul 09 10:33:49 2006 +0000 +++ b/electronicarts.c Sun Jul 09 23:40:53 2006 +0000 @@ -278,7 +278,7 @@ return 0; } -static AVInputFormat ea_iformat = { +static AVInputFormat ea_demuxer = { "ea", "Electronic Arts Multimedia Format", sizeof(EaDemuxContext), @@ -290,6 +290,6 @@ int ea_init(void) { - av_register_input_format(&ea_iformat); + av_register_input_format(&ea_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da ffm.c --- a/ffm.c Sun Jul 09 10:33:49 2006 +0000 +++ b/ffm.c Sun Jul 09 23:40:53 2006 +0000 @@ -761,7 +761,7 @@ return 0; } -static AVInputFormat ffm_iformat = { +static AVInputFormat ffm_demuxer = { "ffm", "ffm format", sizeof(FFMContext), @@ -773,7 +773,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat ffm_oformat = { +static AVOutputFormat ffm_muxer = { "ffm", "ffm format", "", @@ -790,9 +790,9 @@ int ffm_init(void) { - av_register_input_format(&ffm_iformat); + av_register_input_format(&ffm_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&ffm_oformat); + av_register_output_format(&ffm_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da flic.c --- a/flic.c Sun Jul 09 10:33:49 2006 +0000 +++ b/flic.c Sun Jul 09 23:40:53 2006 +0000 @@ -208,7 +208,7 @@ return 0; } -static AVInputFormat flic_iformat = { +static AVInputFormat flic_demuxer = { "flic", "FLI/FLC/FLX animation format", sizeof(FlicDemuxContext), @@ -220,6 +220,6 @@ int flic_init(void) { - av_register_input_format(&flic_iformat); + av_register_input_format(&flic_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da flvdec.c --- a/flvdec.c Sun Jul 09 10:33:49 2006 +0000 +++ b/flvdec.c Sun Jul 09 23:40:53 2006 +0000 @@ -211,7 +211,7 @@ return 0; } -AVInputFormat flv_iformat = { +AVInputFormat flv_demuxer = { "flv", "flv format", 0, @@ -225,6 +225,6 @@ int flvdec_init(void) { - av_register_input_format(&flv_iformat); + av_register_input_format(&flv_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da flvenc.c --- a/flvenc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/flvenc.c Sun Jul 09 23:40:53 2006 +0000 @@ -167,7 +167,7 @@ return 0; } -static AVOutputFormat flv_oformat = { +static AVOutputFormat flv_muxer = { "flv", "flv format", "video/x-flv", @@ -186,6 +186,6 @@ int flvenc_init(void) { - av_register_output_format(&flv_oformat); + av_register_output_format(&flv_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da gif.c --- a/gif.c Sun Jul 09 10:33:49 2006 +0000 +++ b/gif.c Sun Jul 09 23:40:53 2006 +0000 @@ -414,7 +414,7 @@ return 0; } -static AVOutputFormat gif_oformat = { +static AVOutputFormat gif_muxer = { "gif", "GIF Animation", "image/gif", @@ -427,11 +427,11 @@ gif_write_trailer, }; -extern AVInputFormat gif_iformat; +extern AVInputFormat gif_demuxer; int gif_init(void) { - av_register_output_format(&gif_oformat); - av_register_input_format(&gif_iformat); + av_register_output_format(&gif_muxer); + av_register_input_format(&gif_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da gifdec.c --- a/gifdec.c Sun Jul 09 10:33:49 2006 +0000 +++ b/gifdec.c Sun Jul 09 23:40:53 2006 +0000 @@ -619,7 +619,7 @@ return 0; } -AVInputFormat gif_iformat = +AVInputFormat gif_demuxer = { "gif", "gif format", diff -r e89500dd9064 -r d89d7ef290da grab.c --- a/grab.c Sun Jul 09 10:33:49 2006 +0000 +++ b/grab.c Sun Jul 09 23:40:53 2006 +0000 @@ -365,7 +365,7 @@ return 0; } -static AVInputFormat video_grab_device_format = { +static AVInputFormat video_grab_device_demuxer = { "video4linux", "video grab", sizeof(VideoData), @@ -851,6 +851,6 @@ int video_grab_init(void) { - av_register_input_format(&video_grab_device_format); + av_register_input_format(&video_grab_device_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da grab_bktr.c --- a/grab_bktr.c Sun Jul 09 10:33:49 2006 +0000 +++ b/grab_bktr.c Sun Jul 09 23:40:53 2006 +0000 @@ -316,7 +316,7 @@ return 0; } -AVInputFormat video_grab_device_format = { +AVInputFormat video_grab_device_demuxer = { "bktr", "video grab", sizeof(VideoData), @@ -329,6 +329,6 @@ int video_grab_init(void) { - av_register_input_format(&video_grab_device_format); + av_register_input_format(&video_grab_device_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da gxf.c --- a/gxf.c Sun Jul 09 10:33:49 2006 +0000 +++ b/gxf.c Sun Jul 09 23:40:53 2006 +0000 @@ -241,7 +241,7 @@ return AVERROR_IO; } -static AVInputFormat gxf_iformat = { +static AVInputFormat gxf_demuxer = { "gxf", "GXF format", 0, @@ -253,7 +253,7 @@ }; int gxf_init(void) { - av_register_input_format(&gxf_iformat); + av_register_input_format(&gxf_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da idcin.c --- a/idcin.c Sun Jul 09 10:33:49 2006 +0000 +++ b/idcin.c Sun Jul 09 23:40:53 2006 +0000 @@ -288,7 +288,7 @@ return 0; } -static AVInputFormat idcin_iformat = { +static AVInputFormat idcin_demuxer = { "idcin", "Id CIN format", sizeof(IdcinDemuxContext), @@ -300,6 +300,6 @@ int idcin_init(void) { - av_register_input_format(&idcin_iformat); + av_register_input_format(&idcin_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da idroq.c --- a/idroq.c Sun Jul 09 10:33:49 2006 +0000 +++ b/idroq.c Sun Jul 09 23:40:53 2006 +0000 @@ -278,7 +278,7 @@ return 0; } -static AVInputFormat roq_iformat = { +static AVInputFormat roq_demuxer = { "RoQ", "Id RoQ format", sizeof(RoqDemuxContext), @@ -290,6 +290,6 @@ int roq_init(void) { - av_register_input_format(&roq_iformat); + av_register_input_format(&roq_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da img.c --- a/img.c Sun Jul 09 10:33:49 2006 +0000 +++ b/img.c Sun Jul 09 23:40:53 2006 +0000 @@ -340,7 +340,7 @@ /* input */ -static AVInputFormat image_iformat = { +static AVInputFormat image_demuxer = { "image", "image sequence", sizeof(VideoData), @@ -353,7 +353,7 @@ AVFMT_NOFILE | AVFMT_NEEDNUMBER, }; -static AVInputFormat imagepipe_iformat = { +static AVInputFormat imagepipe_demuxer = { "imagepipe", "piped image sequence", sizeof(VideoData), @@ -367,7 +367,7 @@ /* output */ -static AVOutputFormat image_oformat = { +static AVOutputFormat image_muxer = { "image", "image sequence", "", @@ -382,7 +382,7 @@ img_set_parameters, }; -static AVOutputFormat imagepipe_oformat = { +static AVOutputFormat imagepipe_muxer = { "imagepipe", "piped image sequence", "", @@ -399,11 +399,11 @@ int img_init(void) { - av_register_input_format(&image_iformat); - av_register_output_format(&image_oformat); + av_register_input_format(&image_demuxer); + av_register_output_format(&image_muxer); - av_register_input_format(&imagepipe_iformat); - av_register_output_format(&imagepipe_oformat); + av_register_input_format(&imagepipe_demuxer); + av_register_output_format(&imagepipe_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da img2.c --- a/img2.c Sun Jul 09 10:33:49 2006 +0000 +++ b/img2.c Sun Jul 09 23:40:53 2006 +0000 @@ -365,7 +365,7 @@ /* input */ -static AVInputFormat image2_iformat = { +static AVInputFormat image2_demuxer = { "image2", "image2 sequence", sizeof(VideoData), @@ -378,7 +378,7 @@ AVFMT_NOFILE, }; -static AVInputFormat image2pipe_iformat = { +static AVInputFormat image2pipe_demuxer = { "image2pipe", "piped image2 sequence", sizeof(VideoData), @@ -393,7 +393,7 @@ #ifdef CONFIG_MUXERS /* output */ -static AVOutputFormat image2_oformat = { +static AVOutputFormat image2_muxer = { "image2", "image2 sequence", "", @@ -407,7 +407,7 @@ AVFMT_NOFILE, }; -static AVOutputFormat image2pipe_oformat = { +static AVOutputFormat image2pipe_muxer = { "image2pipe", "piped image2 sequence", "", @@ -423,12 +423,12 @@ int img2_init(void) { - av_register_input_format(&image2_iformat); - av_register_input_format(&image2pipe_iformat); + av_register_input_format(&image2_demuxer); + av_register_input_format(&image2pipe_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&image2_oformat); - av_register_output_format(&image2pipe_oformat); + av_register_output_format(&image2_muxer); + av_register_output_format(&image2pipe_muxer); #endif return 0; diff -r e89500dd9064 -r d89d7ef290da ipmovie.c --- a/ipmovie.c Sun Jul 09 10:33:49 2006 +0000 +++ b/ipmovie.c Sun Jul 09 23:40:53 2006 +0000 @@ -612,7 +612,7 @@ return 0; } -static AVInputFormat ipmovie_iformat = { +static AVInputFormat ipmovie_demuxer = { "ipmovie", "Interplay MVE format", sizeof(IPMVEContext), @@ -624,7 +624,7 @@ int ipmovie_init(void) { - av_register_input_format(&ipmovie_iformat); + av_register_input_format(&ipmovie_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da matroska.c --- a/matroska.c Sun Jul 09 10:33:49 2006 +0000 +++ b/matroska.c Sun Jul 09 23:40:53 2006 +0000 @@ -2635,7 +2635,7 @@ return 0; } -static AVInputFormat matroska_iformat = { +static AVInputFormat matroska_demuxer = { "matroska", "Matroska file format", sizeof(MatroskaDemuxContext), @@ -2648,6 +2648,6 @@ int matroska_init(void) { - av_register_input_format(&matroska_iformat); + av_register_input_format(&matroska_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da mm.c --- a/mm.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mm.c Sun Jul 09 23:40:53 2006 +0000 @@ -199,7 +199,7 @@ return 0; } -static AVInputFormat mm_iformat = { +static AVInputFormat mm_demuxer = { "mm", "American Laser Games MM format", sizeof(MmDemuxContext), @@ -211,6 +211,6 @@ int mm_init(void) { - av_register_input_format(&mm_iformat); + av_register_input_format(&mm_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da mmf.c --- a/mmf.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mmf.c Sun Jul 09 23:40:53 2006 +0000 @@ -302,7 +302,7 @@ } -static AVInputFormat mmf_iformat = { +static AVInputFormat mmf_demuxer = { "mmf", "mmf format", sizeof(MMFContext), @@ -314,7 +314,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat mmf_oformat = { +static AVOutputFormat mmf_muxer = { "mmf", "mmf format", "application/vnd.smaf", @@ -330,9 +330,9 @@ int ff_mmf_init(void) { - av_register_input_format(&mmf_iformat); + av_register_input_format(&mmf_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&mmf_oformat); + av_register_output_format(&mmf_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da mov.c --- a/mov.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mov.c Sun Jul 09 23:40:53 2006 +0000 @@ -1907,7 +1907,7 @@ return 0; } -static AVInputFormat mov_iformat = { +static AVInputFormat mov_demuxer = { "mov,mp4,m4a,3gp,3g2,mj2", "QuickTime/MPEG4/Motion JPEG 2000 format", sizeof(MOVContext), @@ -1920,6 +1920,6 @@ int mov_init(void) { - av_register_input_format(&mov_iformat); + av_register_input_format(&mov_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da movenc.c --- a/movenc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/movenc.c Sun Jul 09 23:40:53 2006 +0000 @@ -1588,7 +1588,7 @@ return res; } -static AVOutputFormat mov_oformat = { +static AVOutputFormat mov_muxer = { "mov", "mov format", NULL, @@ -1602,7 +1602,7 @@ .flags = AVFMT_GLOBALHEADER, }; -static AVOutputFormat _3gp_oformat = { +static AVOutputFormat _3gp_muxer = { "3gp", "3gp format", NULL, @@ -1616,7 +1616,7 @@ .flags = AVFMT_GLOBALHEADER, }; -static AVOutputFormat mp4_oformat = { +static AVOutputFormat mp4_muxer = { "mp4", "mp4 format", "application/mp4", @@ -1630,7 +1630,7 @@ .flags = AVFMT_GLOBALHEADER, }; -static AVOutputFormat psp_oformat = { +static AVOutputFormat psp_muxer = { "psp", "psp mp4 format", NULL, @@ -1644,7 +1644,7 @@ .flags = AVFMT_GLOBALHEADER, }; -static AVOutputFormat _3g2_oformat = { +static AVOutputFormat _3g2_muxer = { "3g2", "3gp2 format", NULL, @@ -1660,10 +1660,10 @@ int movenc_init(void) { - av_register_output_format(&mov_oformat); - av_register_output_format(&_3gp_oformat); - av_register_output_format(&mp4_oformat); - av_register_output_format(&psp_oformat); - av_register_output_format(&_3g2_oformat); + av_register_output_format(&mov_muxer); + av_register_output_format(&_3gp_muxer); + av_register_output_format(&mp4_muxer); + av_register_output_format(&psp_muxer); + av_register_output_format(&_3g2_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da mp3.c --- a/mp3.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mp3.c Sun Jul 09 23:40:53 2006 +0000 @@ -368,7 +368,7 @@ } #endif //CONFIG_MUXERS -AVInputFormat mp3_iformat = { +AVInputFormat mp3_demuxer = { "mp3", "MPEG audio", 0, @@ -380,7 +380,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat mp2_oformat = { +AVOutputFormat mp2_muxer = { "mp2", "MPEG audio layer 2", "audio/x-mpeg", @@ -398,7 +398,7 @@ }; #ifdef CONFIG_MP3LAME -AVOutputFormat mp3_oformat = { +AVOutputFormat mp3_muxer = { "mp3", "MPEG audio layer 3", "audio/x-mpeg", @@ -415,11 +415,11 @@ int mp3_init(void) { - av_register_input_format(&mp3_iformat); + av_register_input_format(&mp3_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&mp2_oformat); + av_register_output_format(&mp2_muxer); #ifdef CONFIG_MP3LAME - av_register_output_format(&mp3_oformat); + av_register_output_format(&mp3_muxer); #endif #endif //CONFIG_MUXERS return 0; diff -r e89500dd9064 -r d89d7ef290da mpeg.c --- a/mpeg.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mpeg.c Sun Jul 09 23:40:53 2006 +0000 @@ -108,11 +108,11 @@ static const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 }; #ifdef CONFIG_MUXERS -static AVOutputFormat mpeg1system_mux; -static AVOutputFormat mpeg1vcd_mux; -static AVOutputFormat mpeg2vob_mux; -static AVOutputFormat mpeg2svcd_mux; -static AVOutputFormat mpeg2dvd_mux; +static AVOutputFormat mpeg1system_muxer; +static AVOutputFormat mpeg1vcd_muxer; +static AVOutputFormat mpeg2vob_muxer; +static AVOutputFormat mpeg2svcd_muxer; +static AVOutputFormat mpeg2dvd_muxer; static int put_pack_header(AVFormatContext *ctx, uint8_t *buf, int64_t timestamp) @@ -330,10 +330,10 @@ int video_bitrate; s->packet_number = 0; - s->is_vcd = (ctx->oformat == &mpeg1vcd_mux); - s->is_svcd = (ctx->oformat == &mpeg2svcd_mux); - s->is_mpeg2 = (ctx->oformat == &mpeg2vob_mux || ctx->oformat == &mpeg2svcd_mux || ctx->oformat == &mpeg2dvd_mux); - s->is_dvd = (ctx->oformat == &mpeg2dvd_mux); + s->is_vcd = (ctx->oformat == &mpeg1vcd_muxer); + s->is_svcd = (ctx->oformat == &mpeg2svcd_muxer); + s->is_mpeg2 = (ctx->oformat == &mpeg2vob_muxer || ctx->oformat == &mpeg2svcd_muxer || ctx->oformat == &mpeg2dvd_muxer); + s->is_dvd = (ctx->oformat == &mpeg2dvd_muxer); if(ctx->packet_size) s->packet_size = ctx->packet_size; @@ -1713,7 +1713,7 @@ } #ifdef CONFIG_MUXERS -static AVOutputFormat mpeg1system_mux = { +static AVOutputFormat mpeg1system_muxer = { "mpeg", "MPEG1 System format", "video/mpeg", @@ -1726,7 +1726,7 @@ mpeg_mux_end, }; -static AVOutputFormat mpeg1vcd_mux = { +static AVOutputFormat mpeg1vcd_muxer = { "vcd", "MPEG1 System format (VCD)", "video/mpeg", @@ -1739,7 +1739,7 @@ mpeg_mux_end, }; -static AVOutputFormat mpeg2vob_mux = { +static AVOutputFormat mpeg2vob_muxer = { "vob", "MPEG2 PS format (VOB)", "video/mpeg", @@ -1752,8 +1752,8 @@ mpeg_mux_end, }; -/* Same as mpeg2vob_mux except that the pack size is 2324 */ -static AVOutputFormat mpeg2svcd_mux = { +/* Same as mpeg2vob_muxer except that the pack size is 2324 */ +static AVOutputFormat mpeg2svcd_muxer = { "svcd", "MPEG2 PS format (VOB)", "video/mpeg", @@ -1766,8 +1766,8 @@ mpeg_mux_end, }; -/* Same as mpeg2vob_mux except the 'is_dvd' flag is set to produce NAV pkts */ -static AVOutputFormat mpeg2dvd_mux = { +/* Same as mpeg2vob_muxer except the 'is_dvd' flag is set to produce NAV pkts */ +static AVOutputFormat mpeg2dvd_muxer = { "dvd", "MPEG2 PS format (DVD VOB)", "video/mpeg", @@ -1782,7 +1782,7 @@ #endif //CONFIG_MUXERS -AVInputFormat mpegps_demux = { +AVInputFormat mpegps_demuxer = { "mpeg", "MPEG PS format", sizeof(MpegDemuxContext), @@ -1798,12 +1798,12 @@ int mpegps_init(void) { #ifdef CONFIG_MUXERS - av_register_output_format(&mpeg1system_mux); - av_register_output_format(&mpeg1vcd_mux); - av_register_output_format(&mpeg2vob_mux); - av_register_output_format(&mpeg2svcd_mux); - av_register_output_format(&mpeg2dvd_mux); + av_register_output_format(&mpeg1system_muxer); + av_register_output_format(&mpeg1vcd_muxer); + av_register_output_format(&mpeg2vob_muxer); + av_register_output_format(&mpeg2svcd_muxer); + av_register_output_format(&mpeg2dvd_muxer); #endif //CONFIG_MUXERS - av_register_input_format(&mpegps_demux); + av_register_input_format(&mpegps_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da mpegts.c --- a/mpegts.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mpegts.c Sun Jul 09 23:40:53 2006 +0000 @@ -1511,7 +1511,7 @@ av_free(ts); } -AVInputFormat mpegts_demux = { +AVInputFormat mpegts_demuxer = { "mpegts", "MPEG2 transport stream format", sizeof(MpegTSContext), @@ -1526,9 +1526,9 @@ int mpegts_init(void) { - av_register_input_format(&mpegts_demux); + av_register_input_format(&mpegts_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&mpegts_mux); + av_register_output_format(&mpegts_muxer); #endif return 0; } diff -r e89500dd9064 -r d89d7ef290da mpegts.h --- a/mpegts.h Sun Jul 09 10:33:49 2006 +0000 +++ b/mpegts.h Sun Jul 09 23:40:53 2006 +0000 @@ -51,7 +51,7 @@ #define STREAM_TYPE_SUBTITLE_DVB 0x100 unsigned int mpegts_crc32(const uint8_t *data, int len); -extern AVOutputFormat mpegts_mux; +extern AVOutputFormat mpegts_muxer; typedef struct MpegTSContext MpegTSContext; diff -r e89500dd9064 -r d89d7ef290da mpegtsenc.c --- a/mpegtsenc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mpegtsenc.c Sun Jul 09 23:40:53 2006 +0000 @@ -661,7 +661,7 @@ return 0; } -AVOutputFormat mpegts_mux = { +AVOutputFormat mpegts_muxer = { "mpegts", "MPEG2 transport stream format", "video/x-mpegts", diff -r e89500dd9064 -r d89d7ef290da mpjpeg.c --- a/mpjpeg.c Sun Jul 09 10:33:49 2006 +0000 +++ b/mpjpeg.c Sun Jul 09 23:40:53 2006 +0000 @@ -52,7 +52,7 @@ return 0; } -static AVOutputFormat mpjpeg_format = { +static AVOutputFormat mpjpeg_muxer = { "mpjpeg", "Mime multipart JPEG format", "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, @@ -67,7 +67,7 @@ int jpeg_init(void) { - av_register_output_format(&mpjpeg_format); + av_register_output_format(&mpjpeg_muxer); return 0; } #endif //CONFIG_MUXERS diff -r e89500dd9064 -r d89d7ef290da nsvdec.c --- a/nsvdec.c Sun Jul 09 10:33:49 2006 +0000 +++ b/nsvdec.c Sun Jul 09 23:40:53 2006 +0000 @@ -742,7 +742,7 @@ return 0; } -static AVInputFormat nsv_iformat = { +static AVInputFormat nsv_demuxer = { "nsv", "NullSoft Video format", sizeof(NSVContext), @@ -755,6 +755,6 @@ int nsvdec_init(void) { - av_register_input_format(&nsv_iformat); + av_register_input_format(&nsv_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da nut.c --- a/nut.c Sun Jul 09 10:33:49 2006 +0000 +++ b/nut.c Sun Jul 09 23:40:53 2006 +0000 @@ -1419,7 +1419,7 @@ return 0; } -static AVInputFormat nut_iformat = { +static AVInputFormat nut_demuxer = { "nut", "nut format", sizeof(NUTContext), @@ -1433,7 +1433,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat nut_oformat = { +static AVOutputFormat nut_muxer = { "nut", "nut format", "video/x-nut", @@ -1456,9 +1456,9 @@ int nut_init(void) { - av_register_input_format(&nut_iformat); + av_register_input_format(&nut_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&nut_oformat); + av_register_output_format(&nut_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da nuv.c --- a/nuv.c Sun Jul 09 10:33:49 2006 +0000 +++ b/nuv.c Sun Jul 09 23:40:53 2006 +0000 @@ -227,7 +227,7 @@ return AVERROR_IO; } -static AVInputFormat nuv_iformat = { +static AVInputFormat nuv_demuxer = { "nuv", "NuppelVideo format", sizeof(NUVContext), @@ -239,7 +239,7 @@ }; int nuv_init(void) { - av_register_input_format(&nuv_iformat); + av_register_input_format(&nuv_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da ogg.c --- a/ogg.c Sun Jul 09 10:33:49 2006 +0000 +++ b/ogg.c Sun Jul 09 23:40:53 2006 +0000 @@ -137,7 +137,7 @@ } -static AVOutputFormat ogg_oformat = { +static AVOutputFormat ogg_muxer = { "ogg", "Ogg Vorbis", "audio/x-vorbis", @@ -254,7 +254,7 @@ } -static AVInputFormat ogg_iformat = { +static AVInputFormat ogg_demuxer = { "ogg", "Ogg Vorbis", sizeof(OggContext), @@ -268,8 +268,8 @@ int libogg_init(void) { #ifdef CONFIG_MUXERS - av_register_output_format(&ogg_oformat) ; + av_register_output_format(&ogg_muxer) ; #endif -/* av_register_input_format(&ogg_iformat); */ +/* av_register_input_format(&ogg_demuxer); */ return 0 ; } diff -r e89500dd9064 -r d89d7ef290da ogg2.c --- a/ogg2.c Sun Jul 09 10:33:49 2006 +0000 +++ b/ogg2.c Sun Jul 09 23:40:53 2006 +0000 @@ -65,7 +65,7 @@ } -static AVOutputFormat ogg_oformat = { +static AVOutputFormat ogg_muxer = { "ogg", "Ogg Vorbis", "audio/x-vorbis", @@ -656,7 +656,7 @@ return 0; } -static AVInputFormat ogg_iformat = { +static AVInputFormat ogg_demuxer = { "ogg", "Ogg", sizeof (ogg_t), @@ -673,8 +673,8 @@ ogg_init (void) { #if 0 // CONFIG_MUXERS - av_register_output_format (&ogg_oformat); + av_register_output_format (&ogg_muxer); #endif - av_register_input_format (&ogg_iformat); + av_register_input_format (&ogg_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da psxstr.c --- a/psxstr.c Sun Jul 09 10:33:49 2006 +0000 +++ b/psxstr.c Sun Jul 09 23:40:53 2006 +0000 @@ -351,7 +351,7 @@ return 0; } -static AVInputFormat str_iformat = { +static AVInputFormat str_demuxer = { "psxstr", "Sony Playstation STR format", sizeof(StrDemuxContext), @@ -363,6 +363,6 @@ int str_init(void) { - av_register_input_format(&str_iformat); + av_register_input_format(&str_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da raw.c --- a/raw.c Sun Jul 09 10:33:49 2006 +0000 +++ b/raw.c Sun Jul 09 23:40:53 2006 +0000 @@ -389,7 +389,7 @@ return 0; } -AVInputFormat shorten_iformat = { +AVInputFormat shorten_demuxer = { "shn", "raw shorten", 0, @@ -400,7 +400,7 @@ .extensions = "shn", }; -AVInputFormat flac_iformat = { +AVInputFormat flac_demuxer = { "flac", "raw flac", 0, @@ -412,7 +412,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat flac_oformat = { +AVOutputFormat flac_muxer = { "flac", "raw flac", "audio/x-flac", @@ -426,7 +426,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat ac3_iformat = { +AVInputFormat ac3_demuxer = { "ac3", "raw ac3", 0, @@ -438,7 +438,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat ac3_oformat = { +AVOutputFormat ac3_muxer = { "ac3", "raw ac3", "audio/x-ac3", @@ -452,7 +452,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat dts_iformat = { +AVInputFormat dts_demuxer = { "dts", "raw dts", 0, @@ -463,7 +463,7 @@ .extensions = "dts", }; -AVInputFormat aac_iformat = { +AVInputFormat aac_demuxer = { "aac", "ADTS AAC", 0, @@ -474,7 +474,7 @@ .extensions = "aac", }; -AVInputFormat h261_iformat = { +AVInputFormat h261_demuxer = { "h261", "raw h261", 0, @@ -487,7 +487,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat h261_oformat = { +AVOutputFormat h261_muxer = { "h261", "raw h261", "video/x-h261", @@ -501,7 +501,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat h263_iformat = { +AVInputFormat h263_demuxer = { "h263", "raw h263", 0, @@ -514,7 +514,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat h263_oformat = { +AVOutputFormat h263_muxer = { "h263", "raw h263", "video/x-h263", @@ -528,7 +528,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat m4v_iformat = { +AVInputFormat m4v_demuxer = { "m4v", "raw MPEG4 video format", 0, @@ -541,7 +541,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat m4v_oformat = { +AVOutputFormat m4v_muxer = { "m4v", "raw MPEG4 video format", NULL, @@ -555,7 +555,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat h264_iformat = { +AVInputFormat h264_demuxer = { "h264", "raw H264 video format", 0, @@ -568,7 +568,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat h264_oformat = { +AVOutputFormat h264_muxer = { "h264", "raw H264 video format", NULL, @@ -582,7 +582,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat mpegvideo_iformat = { +AVInputFormat mpegvideo_demuxer = { "mpegvideo", "MPEG video", 0, @@ -594,7 +594,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat mpeg1video_oformat = { +AVOutputFormat mpeg1video_muxer = { "mpeg1video", "MPEG video", "video/x-mpeg", @@ -609,7 +609,7 @@ #endif //CONFIG_MUXERS #ifdef CONFIG_MUXERS -AVOutputFormat mpeg2video_oformat = { +AVOutputFormat mpeg2video_muxer = { "mpeg2video", "MPEG2 video", NULL, @@ -623,7 +623,7 @@ }; #endif //CONFIG_MUXERS -AVInputFormat mjpeg_iformat = { +AVInputFormat mjpeg_demuxer = { "mjpeg", "MJPEG video", 0, @@ -635,7 +635,7 @@ .value = CODEC_ID_MJPEG, }; -AVInputFormat ingenient_iformat = { +AVInputFormat ingenient_demuxer = { "ingenient", "Ingenient MJPEG", 0, @@ -648,7 +648,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat mjpeg_oformat = { +AVOutputFormat mjpeg_muxer = { "mjpeg", "MJPEG video", "video/x-mjpeg", @@ -665,7 +665,7 @@ /* pcm formats */ #define PCMINPUTDEF(name, long_name, ext, codec) \ -AVInputFormat pcm_ ## name ## _iformat = {\ +AVInputFormat pcm_ ## name ## _demuxer = {\ #name,\ long_name,\ 0,\ @@ -679,7 +679,7 @@ }; #define PCMOUTPUTDEF(name, long_name, ext, codec) \ -AVOutputFormat pcm_ ## name ## _oformat = {\ +AVOutputFormat pcm_ ## name ## _muxer = {\ #name,\ long_name,\ NULL,\ @@ -762,7 +762,7 @@ } } -AVInputFormat rawvideo_iformat = { +AVInputFormat rawvideo_demuxer = { "rawvideo", "raw video format", 0, @@ -775,7 +775,7 @@ }; #ifdef CONFIG_MUXERS -AVOutputFormat rawvideo_oformat = { +AVOutputFormat rawvideo_muxer = { "rawvideo", "raw video format", NULL, @@ -795,7 +795,7 @@ return 0; } -AVOutputFormat null_oformat = { +AVOutputFormat null_muxer = { "null", "null video format", NULL, @@ -824,59 +824,59 @@ int raw_init(void) { - av_register_input_format(&shorten_iformat); - av_register_input_format(&flac_iformat); - av_register_output_format(&flac_oformat); + av_register_input_format(&shorten_demuxer); + av_register_input_format(&flac_demuxer); + av_register_output_format(&flac_muxer); - av_register_input_format(&ac3_iformat); - av_register_output_format(&ac3_oformat); + av_register_input_format(&ac3_demuxer); + av_register_output_format(&ac3_muxer); - av_register_input_format(&aac_iformat); + av_register_input_format(&aac_demuxer); - av_register_input_format(&dts_iformat); + av_register_input_format(&dts_demuxer); - av_register_input_format(&h261_iformat); - av_register_output_format(&h261_oformat); + av_register_input_format(&h261_demuxer); + av_register_output_format(&h261_muxer); - av_register_input_format(&h263_iformat); - av_register_output_format(&h263_oformat); + av_register_input_format(&h263_demuxer); + av_register_output_format(&h263_muxer); - av_register_input_format(&m4v_iformat); - av_register_output_format(&m4v_oformat); + av_register_input_format(&m4v_demuxer); + av_register_output_format(&m4v_muxer); - av_register_input_format(&h264_iformat); - av_register_output_format(&h264_oformat); + av_register_input_format(&h264_demuxer); + av_register_output_format(&h264_muxer); - av_register_input_format(&mpegvideo_iformat); - av_register_output_format(&mpeg1video_oformat); + av_register_input_format(&mpegvideo_demuxer); + av_register_output_format(&mpeg1video_muxer); - av_register_output_format(&mpeg2video_oformat); + av_register_output_format(&mpeg2video_muxer); - av_register_input_format(&mjpeg_iformat); - av_register_output_format(&mjpeg_oformat); + av_register_input_format(&mjpeg_demuxer); + av_register_output_format(&mjpeg_muxer); - av_register_input_format(&ingenient_iformat); + av_register_input_format(&ingenient_demuxer); - av_register_input_format(&pcm_s16le_iformat); - av_register_output_format(&pcm_s16le_oformat); - av_register_input_format(&pcm_s16be_iformat); - av_register_output_format(&pcm_s16be_oformat); - av_register_input_format(&pcm_u16le_iformat); - av_register_output_format(&pcm_u16le_oformat); - av_register_input_format(&pcm_u16be_iformat); - av_register_output_format(&pcm_u16be_oformat); - av_register_input_format(&pcm_s8_iformat); - av_register_output_format(&pcm_s8_oformat); - av_register_input_format(&pcm_u8_iformat); - av_register_output_format(&pcm_u8_oformat); - av_register_input_format(&pcm_mulaw_iformat); - av_register_output_format(&pcm_mulaw_oformat); - av_register_input_format(&pcm_alaw_iformat); - av_register_output_format(&pcm_alaw_oformat); + av_register_input_format(&pcm_s16le_demuxer); + av_register_output_format(&pcm_s16le_muxer); + av_register_input_format(&pcm_s16be_demuxer); + av_register_output_format(&pcm_s16be_muxer); + av_register_input_format(&pcm_u16le_demuxer); + av_register_output_format(&pcm_u16le_muxer); + av_register_input_format(&pcm_u16be_demuxer); + av_register_output_format(&pcm_u16be_muxer); + av_register_input_format(&pcm_s8_demuxer); + av_register_output_format(&pcm_s8_muxer); + av_register_input_format(&pcm_u8_demuxer); + av_register_output_format(&pcm_u8_muxer); + av_register_input_format(&pcm_mulaw_demuxer); + av_register_output_format(&pcm_mulaw_muxer); + av_register_input_format(&pcm_alaw_demuxer); + av_register_output_format(&pcm_alaw_muxer); - av_register_input_format(&rawvideo_iformat); - av_register_output_format(&rawvideo_oformat); + av_register_input_format(&rawvideo_demuxer); + av_register_output_format(&rawvideo_muxer); - av_register_output_format(&null_oformat); + av_register_output_format(&null_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da rm.c --- a/rm.c Sun Jul 09 10:33:49 2006 +0000 +++ b/rm.c Sun Jul 09 23:40:53 2006 +0000 @@ -1122,7 +1122,7 @@ return dts; } -static AVInputFormat rm_iformat = { +static AVInputFormat rm_demuxer = { "rm", "rm format", sizeof(RMContext), @@ -1135,7 +1135,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat rm_oformat = { +static AVOutputFormat rm_muxer = { "rm", "rm format", "application/vnd.rn-realmedia", @@ -1151,9 +1151,9 @@ int rm_init(void) { - av_register_input_format(&rm_iformat); + av_register_input_format(&rm_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&rm_oformat); + av_register_output_format(&rm_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da rtp.c --- a/rtp.c Sun Jul 09 10:33:49 2006 +0000 +++ b/rtp.c Sun Jul 09 23:40:53 2006 +0000 @@ -860,7 +860,7 @@ return 0; } -AVOutputFormat rtp_mux = { +AVOutputFormat rtp_muxer = { "rtp", "RTP output format", NULL, @@ -875,6 +875,6 @@ int rtp_init(void) { - av_register_output_format(&rtp_mux); + av_register_output_format(&rtp_muxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da rtp.h --- a/rtp.h Sun Jul 09 10:33:49 2006 +0000 +++ b/rtp.h Sun Jul 09 23:40:53 2006 +0000 @@ -33,8 +33,8 @@ const uint8_t *buf, int len); void rtp_parse_close(RTPDemuxContext *s); -extern AVOutputFormat rtp_mux; -extern AVInputFormat rtp_demux; +extern AVOutputFormat rtp_muxer; +extern AVInputFormat rtp_demuxer; int rtp_get_local_port(URLContext *h); int rtp_set_remote_url(URLContext *h, const char *uri); diff -r e89500dd9064 -r d89d7ef290da rtsp.c --- a/rtsp.c Sun Jul 09 10:33:49 2006 +0000 +++ b/rtsp.c Sun Jul 09 23:40:53 2006 +0000 @@ -1245,7 +1245,7 @@ return 0; } -AVInputFormat rtsp_demux = { +AVInputFormat rtsp_demuxer = { "rtsp", "RTSP input format", sizeof(RTSPState), @@ -1346,7 +1346,7 @@ } -static AVInputFormat sdp_demux = { +static AVInputFormat sdp_demuxer = { "sdp", "SDP", sizeof(RTSPState), @@ -1410,7 +1410,7 @@ return 0; } -AVInputFormat redir_demux = { +AVInputFormat redir_demuxer = { "redir", "Redirector format", 0, @@ -1422,8 +1422,8 @@ int rtsp_init(void) { - av_register_input_format(&rtsp_demux); - av_register_input_format(&redir_demux); - av_register_input_format(&sdp_demux); + av_register_input_format(&rtsp_demuxer); + av_register_input_format(&redir_demuxer); + av_register_input_format(&sdp_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da rtsp.h --- a/rtsp.h Sun Jul 09 10:33:49 2006 +0000 +++ b/rtsp.h Sun Jul 09 23:40:53 2006 +0000 @@ -88,7 +88,7 @@ extern int rtsp_rtp_port_min; extern int rtsp_rtp_port_max; extern FFRTSPCallback *ff_rtsp_callback; -extern AVInputFormat rtsp_demux; +extern AVInputFormat rtsp_demuxer; int rtsp_pause(AVFormatContext *s); int rtsp_resume(AVFormatContext *s); diff -r e89500dd9064 -r d89d7ef290da segafilm.c --- a/segafilm.c Sun Jul 09 10:33:49 2006 +0000 +++ b/segafilm.c Sun Jul 09 23:40:53 2006 +0000 @@ -297,7 +297,7 @@ return 0; } -static AVInputFormat film_iformat = { +static AVInputFormat film_demuxer = { "film_cpk", "Sega FILM/CPK format", sizeof(FilmDemuxContext), @@ -309,6 +309,6 @@ int film_init(void) { - av_register_input_format(&film_iformat); + av_register_input_format(&film_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da sierravmd.c --- a/sierravmd.c Sun Jul 09 10:33:49 2006 +0000 +++ b/sierravmd.c Sun Jul 09 23:40:53 2006 +0000 @@ -319,7 +319,7 @@ return 0; } -static AVInputFormat vmd_iformat = { +static AVInputFormat vmd_demuxer = { "vmd", "Sierra VMD format", sizeof(VmdDemuxContext), @@ -331,6 +331,6 @@ int vmd_init(void) { - av_register_input_format(&vmd_iformat); + av_register_input_format(&vmd_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da smacker.c --- a/smacker.c Sun Jul 09 10:33:49 2006 +0000 +++ b/smacker.c Sun Jul 09 23:40:53 2006 +0000 @@ -332,7 +332,7 @@ return 0; } -static AVInputFormat smacker_iformat = { +static AVInputFormat smacker_demuxer = { "smk", "Smacker Video", sizeof(SmackerContext), @@ -344,6 +344,6 @@ int smacker_init(void) { - av_register_input_format(&smacker_iformat); + av_register_input_format(&smacker_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da sol.c --- a/sol.c Sun Jul 09 10:33:49 2006 +0000 +++ b/sol.c Sun Jul 09 23:40:53 2006 +0000 @@ -146,7 +146,7 @@ return 0; } -static AVInputFormat sol_iformat = { +static AVInputFormat sol_demuxer = { "sol", "Sierra SOL Format", 0, @@ -159,6 +159,6 @@ int sol_init(void) { - av_register_input_format(&sol_iformat); + av_register_input_format(&sol_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da swf.c --- a/swf.c Sun Jul 09 10:33:49 2006 +0000 +++ b/swf.c Sun Jul 09 23:40:53 2006 +0000 @@ -899,7 +899,7 @@ return 0; } -static AVInputFormat swf_iformat = { +static AVInputFormat swf_demuxer = { "swf", "Flash format", sizeof(SWFContext), @@ -910,7 +910,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat swf_oformat = { +static AVOutputFormat swf_muxer = { "swf", "Flash format", "application/x-shockwave-flash", @@ -926,9 +926,9 @@ int swf_init(void) { - av_register_input_format(&swf_iformat); + av_register_input_format(&swf_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&swf_oformat); + av_register_output_format(&swf_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da tta.c --- a/tta.c Sun Jul 09 10:33:49 2006 +0000 +++ b/tta.c Sun Jul 09 23:40:53 2006 +0000 @@ -139,7 +139,7 @@ return 0; } -AVInputFormat tta_iformat = { +AVInputFormat tta_demuxer = { "tta", "true-audio", sizeof(TTAContext), @@ -152,6 +152,6 @@ int tta_init(void) { - av_register_input_format(&tta_iformat); + av_register_input_format(&tta_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da utils.c --- a/utils.c Sun Jul 09 10:33:49 2006 +0000 +++ b/utils.c Sun Jul 09 23:40:53 2006 +0000 @@ -599,7 +599,7 @@ /* XXX: suppress this hack for redirectors */ #ifdef CONFIG_NETWORK - if (fmt == &redir_demux) { + if (fmt == &redir_demuxer) { err = redir_open(ic_ptr, pb); url_fclose(pb); return err; @@ -1730,7 +1730,7 @@ } ic->file_size = file_size; - if ((ic->iformat == &mpegps_demux || ic->iformat == &mpegts_demux) && file_size && !ic->pb.is_streamed) { + if ((ic->iformat == &mpegps_demuxer || ic->iformat == &mpegts_demuxer) && file_size && !ic->pb.is_streamed) { /* get accurate estimate from the PTSes */ av_estimate_timings_from_pts(ic); } else if (av_has_timings(ic)) { diff -r e89500dd9064 -r d89d7ef290da v4l2.c --- a/v4l2.c Sun Jul 09 10:33:49 2006 +0000 +++ b/v4l2.c Sun Jul 09 23:40:53 2006 +0000 @@ -522,7 +522,7 @@ return 0; } -static AVInputFormat v4l2_format = { +static AVInputFormat v4l2_demuxer = { "video4linux2", "video grab", sizeof(struct video_data), @@ -535,6 +535,6 @@ int v4l2_init(void) { - av_register_input_format(&v4l2_format); + av_register_input_format(&v4l2_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da voc.c --- a/voc.c Sun Jul 09 10:33:49 2006 +0000 +++ b/voc.c Sun Jul 09 23:40:53 2006 +0000 @@ -173,7 +173,7 @@ return 0; } -static AVInputFormat voc_iformat = { +static AVInputFormat voc_demuxer = { "voc", "Creative Voice File format", sizeof(voc_dec_context_t), @@ -256,7 +256,7 @@ return 0; } -static AVOutputFormat voc_oformat = { +static AVOutputFormat voc_muxer = { "voc", "Creative Voice File format", "audio/x-voc", @@ -275,10 +275,10 @@ int voc_init(void) { #ifdef CONFIG_DEMUXERS - av_register_input_format(&voc_iformat); + av_register_input_format(&voc_demuxer); #endif /* CONFIG_DEMUXERS */ #ifdef CONFIG_MUXERS - av_register_output_format(&voc_oformat); + av_register_output_format(&voc_muxer); #endif /* CONFIG_MUXERS */ return 0; } diff -r e89500dd9064 -r d89d7ef290da wav.c --- a/wav.c Sun Jul 09 10:33:49 2006 +0000 +++ b/wav.c Sun Jul 09 23:40:53 2006 +0000 @@ -405,7 +405,7 @@ } -static AVInputFormat wav_iformat = { +static AVInputFormat wav_demuxer = { "wav", "wav format", sizeof(WAVContext), @@ -417,7 +417,7 @@ }; #ifdef CONFIG_MUXERS -static AVOutputFormat wav_oformat = { +static AVOutputFormat wav_muxer = { "wav", "wav format", "audio/x-wav", @@ -433,9 +433,9 @@ int ff_wav_init(void) { - av_register_input_format(&wav_iformat); + av_register_input_format(&wav_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&wav_oformat); + av_register_output_format(&wav_muxer); #endif //CONFIG_MUXERS return 0; } diff -r e89500dd9064 -r d89d7ef290da wc3movie.c --- a/wc3movie.c Sun Jul 09 10:33:49 2006 +0000 +++ b/wc3movie.c Sun Jul 09 23:40:53 2006 +0000 @@ -381,7 +381,7 @@ return 0; } -static AVInputFormat wc3_iformat = { +static AVInputFormat wc3_demuxer = { "wc3movie", "Wing Commander III movie format", sizeof(Wc3DemuxContext), @@ -393,6 +393,6 @@ int wc3_init(void) { - av_register_input_format(&wc3_iformat); + av_register_input_format(&wc3_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da westwood.c --- a/westwood.c Sun Jul 09 10:33:49 2006 +0000 +++ b/westwood.c Sun Jul 09 23:40:53 2006 +0000 @@ -357,7 +357,7 @@ return 0; } -static AVInputFormat wsaud_iformat = { +static AVInputFormat wsaud_demuxer = { "wsaud", "Westwood Studios audio format", sizeof(WsAudDemuxContext), @@ -367,7 +367,7 @@ wsaud_read_close, }; -static AVInputFormat wsvqa_iformat = { +static AVInputFormat wsvqa_demuxer = { "wsvqa", "Westwood Studios VQA format", sizeof(WsVqaDemuxContext), @@ -379,7 +379,7 @@ int westwood_init(void) { - av_register_input_format(&wsaud_iformat); - av_register_input_format(&wsvqa_iformat); + av_register_input_format(&wsaud_demuxer); + av_register_input_format(&wsvqa_demuxer); return 0; } diff -r e89500dd9064 -r d89d7ef290da yuv4mpeg.c --- a/yuv4mpeg.c Sun Jul 09 10:33:49 2006 +0000 +++ b/yuv4mpeg.c Sun Jul 09 23:40:53 2006 +0000 @@ -171,7 +171,7 @@ return 0; } -AVOutputFormat yuv4mpegpipe_oformat = { +AVOutputFormat yuv4mpegpipe_muxer = { "yuv4mpegpipe", "YUV4MPEG pipe format", "", @@ -393,7 +393,7 @@ return 0; } -AVInputFormat yuv4mpegpipe_iformat = { +AVInputFormat yuv4mpegpipe_demuxer = { "yuv4mpegpipe", "YUV4MPEG pipe format", sizeof(struct frame_attributes), @@ -406,9 +406,9 @@ int yuv4mpeg_init(void) { - av_register_input_format(&yuv4mpegpipe_iformat); + av_register_input_format(&yuv4mpegpipe_demuxer); #ifdef CONFIG_MUXERS - av_register_output_format(&yuv4mpegpipe_oformat); + av_register_output_format(&yuv4mpegpipe_muxer); #endif //CONFIG_MUXERS return 0; }