summaryrefslogtreecommitdiff
path: root/libavformat/img2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-01-19 23:36:50 +0000
committerDiego Biurrun <diego@biurrun.de>2006-01-19 23:36:50 +0000
commit8228bff5c6394e5aba24c63ab9d72bf96f8047de (patch)
tree496f04aaa8d4e33794254a7a9bad5514f99c95f0 /libavformat/img2.c
parent1ddf5ba1afcb36d5c59f21419f9a76f0fd71949c (diff)
Put muxer-specific code parts in #ifdef CONFIG_MUXERS.
based on a patch by Luca Abeni < lucabe72 #@# email #.# it > Originally committed as revision 4871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r--libavformat/img2.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 46d8248017..e38c694fc5 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -291,6 +291,7 @@ static int img_read_close(AVFormatContext *s1)
return 0;
}
+#ifdef CONFIG_MUXERS
/******************************************************/
/* image output */
@@ -360,6 +361,8 @@ static int img_write_trailer(AVFormatContext *s)
return 0;
}
+#endif /* CONFIG_MUXERS */
+
/* input */
static AVInputFormat image2_iformat = {
@@ -387,6 +390,7 @@ static AVInputFormat image2pipe_iformat = {
};
+#ifdef CONFIG_MUXERS
/* output */
static AVOutputFormat image2_oformat = {
@@ -415,14 +419,17 @@ static AVOutputFormat image2pipe_oformat = {
img_write_packet,
img_write_trailer,
};
+#endif /* CONFIG_MUXERS */
int img2_init(void)
{
av_register_input_format(&image2_iformat);
- av_register_output_format(&image2_oformat);
-
av_register_input_format(&image2pipe_iformat);
+
+#ifdef CONFIG_MUXERS
+ av_register_output_format(&image2_oformat);
av_register_output_format(&image2pipe_oformat);
+#endif
return 0;
}