comparison rm.c @ 1169:d18cc9a1fd02 libavformat

allow individual selection of muxers and demuxers
author mru
date Mon, 10 Jul 2006 21:14:37 +0000
parents d89d7ef290da
children 770363b669aa
comparison
equal deleted inserted replaced
1168:c894489e2abe 1169:d18cc9a1fd02
1120 } 1120 }
1121 *ppos = pos; 1121 *ppos = pos;
1122 return dts; 1122 return dts;
1123 } 1123 }
1124 1124
1125 static AVInputFormat rm_demuxer = { 1125 #ifdef CONFIG_RM_DEMUXER
1126 AVInputFormat rm_demuxer = {
1126 "rm", 1127 "rm",
1127 "rm format", 1128 "rm format",
1128 sizeof(RMContext), 1129 sizeof(RMContext),
1129 rm_probe, 1130 rm_probe,
1130 rm_read_header, 1131 rm_read_header,
1131 rm_read_packet, 1132 rm_read_packet,
1132 rm_read_close, 1133 rm_read_close,
1133 NULL, 1134 NULL,
1134 rm_read_dts, 1135 rm_read_dts,
1135 }; 1136 };
1136 1137 #endif
1137 #ifdef CONFIG_MUXERS 1138 #ifdef CONFIG_RM_MUXER
1138 static AVOutputFormat rm_muxer = { 1139 AVOutputFormat rm_muxer = {
1139 "rm", 1140 "rm",
1140 "rm format", 1141 "rm format",
1141 "application/vnd.rn-realmedia", 1142 "application/vnd.rn-realmedia",
1142 "rm,ra", 1143 "rm,ra",
1143 sizeof(RMContext), 1144 sizeof(RMContext),
1145 CODEC_ID_RV10, 1146 CODEC_ID_RV10,
1146 rm_write_header, 1147 rm_write_header,
1147 rm_write_packet, 1148 rm_write_packet,
1148 rm_write_trailer, 1149 rm_write_trailer,
1149 }; 1150 };
1150 #endif //CONFIG_MUXERS 1151 #endif
1151
1152 int rm_init(void)
1153 {
1154 av_register_input_format(&rm_demuxer);
1155 #ifdef CONFIG_MUXERS
1156 av_register_output_format(&rm_muxer);
1157 #endif //CONFIG_MUXERS
1158 return 0;
1159 }