diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-10-14 04:15:53 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-10-14 04:15:53 +0000 |
commit | 764ef400159b4f640eda8b22e8c7a20d6649a391 (patch) | |
tree | 2e359b478a7089f81c973e8153ce653ecadb39a8 /libavformat/rm.c | |
parent | a003ee9a44eca32707eaa049171bc752ba3a9fde (diff) | |
download | ffmpeg-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/rm.c')
-rw-r--r-- | libavformat/rm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/rm.c b/libavformat/rm.c index 2dcd5ef577..6cec714ff8 100644 --- a/libavformat/rm.c +++ b/libavformat/rm.c @@ -42,6 +42,7 @@ typedef struct { int old_format; } RMContext; +#ifdef CONFIG_ENCODERS static void put_str(ByteIOContext *s, const char *tag) { put_be16(s,strlen(tag)); @@ -435,6 +436,7 @@ static int rm_write_trailer(AVFormatContext *s) put_flush_packet(pb); return 0; } +#endif //CONFIG_ENCODERS /***************************************************/ @@ -834,6 +836,7 @@ static AVInputFormat rm_iformat = { rm_read_close, }; +#ifdef CONFIG_ENCODERS static AVOutputFormat rm_oformat = { "rm", "rm format", @@ -846,10 +849,13 @@ static AVOutputFormat rm_oformat = { rm_write_packet, rm_write_trailer, }; +#endif //CONFIG_ENCODERS int rm_init(void) { av_register_input_format(&rm_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&rm_oformat); +#endif //CONFIG_ENCODERS return 0; } |