aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf.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/asf.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/asf.c')
-rw-r--r--libavformat/asf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c
index c267df225f..044ba72d9b 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -182,6 +182,7 @@ static const GUID my_guid = {
0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 },
};
+#ifdef CONFIG_ENCODERS
static void put_guid(ByteIOContext *s, const GUID *g)
{
int i;
@@ -661,6 +662,7 @@ static int asf_write_trailer(AVFormatContext *s)
put_flush_packet(&s->pb);
return 0;
}
+#endif //CONFIG_ENCODERS
/**********************************/
/* decoding */
@@ -1245,6 +1247,7 @@ static AVInputFormat asf_iformat = {
asf_read_seek,
};
+#ifdef CONFIG_ENCODERS
static AVOutputFormat asf_oformat = {
"asf",
"asf format",
@@ -1278,11 +1281,14 @@ static AVOutputFormat asf_stream_oformat = {
asf_write_packet,
asf_write_trailer,
};
+#endif //CONFIG_ENCODERS
int asf_init(void)
{
av_register_input_format(&asf_iformat);
+#ifdef CONFIG_ENCODERS
av_register_output_format(&asf_oformat);
av_register_output_format(&asf_stream_oformat);
+#endif //CONFIG_ENCODERS
return 0;
}