comparison swf.c @ 1167:d89d7ef290da libavformat

give AVInput/OutputFormat structs consistent names
author mru
date Sun, 09 Jul 2006 23:40:53 +0000
parents edbe5c3717f9
children d18cc9a1fd02
comparison
equal deleted inserted replaced
1166:e89500dd9064 1167:d89d7ef290da
897 static int swf_read_close(AVFormatContext *s) 897 static int swf_read_close(AVFormatContext *s)
898 { 898 {
899 return 0; 899 return 0;
900 } 900 }
901 901
902 static AVInputFormat swf_iformat = { 902 static AVInputFormat swf_demuxer = {
903 "swf", 903 "swf",
904 "Flash format", 904 "Flash format",
905 sizeof(SWFContext), 905 sizeof(SWFContext),
906 swf_probe, 906 swf_probe,
907 swf_read_header, 907 swf_read_header,
908 swf_read_packet, 908 swf_read_packet,
909 swf_read_close, 909 swf_read_close,
910 }; 910 };
911 911
912 #ifdef CONFIG_MUXERS 912 #ifdef CONFIG_MUXERS
913 static AVOutputFormat swf_oformat = { 913 static AVOutputFormat swf_muxer = {
914 "swf", 914 "swf",
915 "Flash format", 915 "Flash format",
916 "application/x-shockwave-flash", 916 "application/x-shockwave-flash",
917 "swf", 917 "swf",
918 sizeof(SWFContext), 918 sizeof(SWFContext),
924 }; 924 };
925 #endif //CONFIG_MUXERS 925 #endif //CONFIG_MUXERS
926 926
927 int swf_init(void) 927 int swf_init(void)
928 { 928 {
929 av_register_input_format(&swf_iformat); 929 av_register_input_format(&swf_demuxer);
930 #ifdef CONFIG_MUXERS 930 #ifdef CONFIG_MUXERS
931 av_register_output_format(&swf_oformat); 931 av_register_output_format(&swf_muxer);
932 #endif //CONFIG_MUXERS 932 #endif //CONFIG_MUXERS
933 return 0; 933 return 0;
934 } 934 }