aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
committerMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
commit764ef400159b4f640eda8b22e8c7a20d6649a391 (patch)
tree2e359b478a7089f81c973e8153ce653ecadb39a8 /libavformat/mpeg.c
parenta003ee9a44eca32707eaa049171bc752ba3a9fde (diff)
downloadffmpeg-764ef400159b4f640eda8b22e8c7a20d6649a391.tar.gz
disable encoders where appropriate (patch courtesy of BERO
<bero -at- geocities.co.jp>) Originally committed as revision 2375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index b7add0dff9..60224dc095 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -61,6 +61,7 @@ typedef struct {
#define AUDIO_ID 0xc0
#define VIDEO_ID 0xe0
+#ifdef CONFIG_ENCODERS
extern AVOutputFormat mpeg1system_mux;
extern AVOutputFormat mpeg1vcd_mux;
extern AVOutputFormat mpeg2vob_mux;
@@ -396,6 +397,7 @@ static int mpeg_mux_end(AVFormatContext *ctx)
return 0;
}
+#endif //CONFIG_ENCODERS
/*********************************************/
/* demux code */
@@ -650,6 +652,7 @@ static int mpegps_read_close(AVFormatContext *s)
return 0;
}
+#ifdef CONFIG_ENCODERS
static AVOutputFormat mpeg1system_mux = {
"mpeg",
"MPEG1 System format",
@@ -688,6 +691,7 @@ static AVOutputFormat mpeg2vob_mux = {
mpeg_mux_write_packet,
mpeg_mux_end,
};
+#endif //CONFIG_ENCODERS
AVInputFormat mpegps_demux = {
"mpeg",
@@ -702,9 +706,11 @@ AVInputFormat mpegps_demux = {
int mpegps_init(void)
{
+#ifdef CONFIG_ENCODERS
av_register_output_format(&mpeg1system_mux);
av_register_output_format(&mpeg1vcd_mux);
av_register_output_format(&mpeg2vob_mux);
+#endif //CONFIG_ENCODERS
av_register_input_format(&mpegps_demux);
return 0;
}