summaryrefslogtreecommitdiff
path: root/libavformat/swf.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/swf.c
parenta003ee9a44eca32707eaa049171bc752ba3a9fde (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/swf.c')
-rw-r--r--libavformat/swf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index f97a02e3d4..b19d6649e8 100644
--- a/libavformat/swf.c
+++ b/libavformat/swf.c
@@ -49,6 +49,7 @@ typedef struct {
int tag;
} SWFContext;
+#ifdef CONFIG_ENCODERS
static void put_swf_tag(AVFormatContext *s, int tag)
{
SWFContext *swf = s->priv_data;
@@ -418,6 +419,7 @@ static int swf_write_trailer(AVFormatContext *s)
}
return 0;
}
+#endif //CONFIG_ENCODERS
/***********************************/
/* just to extract MP3 from swf */
@@ -551,6 +553,7 @@ static AVInputFormat swf_iformat = {
swf_read_close,
};
+#ifdef CONFIG_ENCODERS
static AVOutputFormat swf_oformat = {
"swf",
"Flash format",
@@ -563,10 +566,13 @@ static AVOutputFormat swf_oformat = {
swf_write_packet,
swf_write_trailer,
};
+#endif //CONFIG_ENCODERS
int swf_init(void)
{
av_register_input_format(&swf_iformat);
+#ifdef CONFIG_ENCODERS
av_register_output_format(&swf_oformat);
+#endif //CONFIG_ENCODERS
return 0;
}