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/ffm.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/ffm.c')
-rw-r--r-- | libavformat/ffm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c index 350da589b6..5f978a84e3 100644 --- a/libavformat/ffm.c +++ b/libavformat/ffm.c @@ -54,6 +54,7 @@ typedef struct FFMContext { /* disable pts hack for testing */ int ffm_nopts = 0; +#ifdef CONFIG_ENCODERS static void flush_packet(AVFormatContext *s) { FFMContext *ffm = s->priv_data; @@ -273,6 +274,7 @@ static int ffm_write_trailer(AVFormatContext *s) av_freep(&s->streams[i]->priv_data); return 0; } +#endif //CONFIG_ENCODERS /* ffm demux */ @@ -663,6 +665,7 @@ static AVInputFormat ffm_iformat = { ffm_seek, }; +#ifdef CONFIG_ENCODERS static AVOutputFormat ffm_oformat = { "ffm", "ffm format", @@ -676,10 +679,13 @@ static AVOutputFormat ffm_oformat = { ffm_write_packet, ffm_write_trailer, }; +#endif //CONFIG_ENCODERS int ffm_init(void) { av_register_input_format(&ffm_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&ffm_oformat); +#endif //CONFIG_ENCODERS return 0; } |