diff options
author | Mike Melanson | 2003-10-14 04:15:53 +0000 |
---|---|---|
committer | Mike Melanson | 2003-10-14 04:15:53 +0000 |
commit | 764ef400159b4f640eda8b22e8c7a20d6649a391 (patch) | |
tree | 2e359b478a7089f81c973e8153ce653ecadb39a8 /libavformat/yuv4mpeg.c | |
parent | a003ee9a44eca32707eaa049171bc752ba3a9fde (diff) |
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/yuv4mpeg.c')
-rw-r--r-- | libavformat/yuv4mpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index cc39ff8b8e..3e712c9323 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -22,6 +22,7 @@ #define Y4M_FRAME_MAGIC "FRAME" #define Y4M_LINE_MAX 256 +#ifdef CONFIG_ENCODERS static int yuv4_write_header(AVFormatContext *s) { AVStream *st; @@ -172,6 +173,7 @@ AVOutputFormat yuv4mpegpipe_oformat = { yuv4_write_trailer, .flags = AVFMT_RAWPICTURE, }; +#endif //CONFIG_ENCODERS /* Header size increased to allow room for optional flags */ #define MAX_YUV4_HEADER 80 @@ -268,7 +270,9 @@ AVInputFormat yuv4mpegpipe_iformat = { int yuv4mpeg_init(void) { av_register_input_format(&yuv4mpegpipe_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&yuv4mpegpipe_oformat); +#endif //CONFIG_ENCODERS return 0; } |