summaryrefslogtreecommitdiff
path: root/libavformat/ogg.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/ogg.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/ogg.c')
-rw-r--r--libavformat/ogg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/ogg.c b/libavformat/ogg.c
index 6b49b8e1ea..ae2ea965c7 100644
--- a/libavformat/ogg.c
+++ b/libavformat/ogg.c
@@ -30,6 +30,7 @@ typedef struct OggContext {
} OggContext ;
+#ifdef CONFIG_ENCODERS
static int ogg_write_header(AVFormatContext *avfcontext)
{
OggContext *context = avfcontext->priv_data;
@@ -162,6 +163,7 @@ static AVOutputFormat ogg_oformat = {
ogg_write_packet,
ogg_write_trailer,
} ;
+#endif //CONFIG_ENCODERS
static int next_packet(AVFormatContext *avfcontext, ogg_packet *op) {
@@ -257,7 +259,9 @@ static AVInputFormat ogg_iformat = {
int ogg_init(void) {
+#ifdef CONFIG_ENCODERS
av_register_output_format(&ogg_oformat) ;
+#endif
av_register_input_format(&ogg_iformat);
return 0 ;
}