disable encoders where appropriate (patch courtesy of BERO
[ffmpeg.git] / libavformat / mpegts.c
index 2fd8bf8..bcee882 100644 (file)
@@ -1047,6 +1047,8 @@ AVInputFormat mpegts_demux = {
 int mpegts_init(void)
 {
     av_register_input_format(&mpegts_demux);
+#ifdef CONFIG_ENCODERS
     av_register_output_format(&mpegts_mux);
+#endif
     return 0;
 }