diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-01-19 23:36:50 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-01-19 23:36:50 +0000 |
commit | 8228bff5c6394e5aba24c63ab9d72bf96f8047de (patch) | |
tree | 496f04aaa8d4e33794254a7a9bad5514f99c95f0 /libavformat/dv.c | |
parent | 1ddf5ba1afcb36d5c59f21419f9a76f0fd71949c (diff) | |
download | ffmpeg-8228bff5c6394e5aba24c63ab9d72bf96f8047de.tar.gz |
Put muxer-specific code parts in #ifdef CONFIG_MUXERS.
based on a patch by Luca Abeni < lucabe72 #@# email #.# it >
Originally committed as revision 4871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r-- | libavformat/dv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index 3124c80699..0cf967bb5d 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -907,6 +907,7 @@ static int dv_read_close(AVFormatContext *s) return 0; } +#ifdef CONFIG_MUXERS static int dv_write_header(AVFormatContext *s) { s->priv_data = dv_init_mux(s); @@ -944,6 +945,7 @@ static int dv_write_trailer(struct AVFormatContext *s) dv_delete_mux((DVMuxContext *)s->priv_data); return 0; } +#endif /* CONFIG_MUXERS */ static AVInputFormat dv_iformat = { "dv", @@ -957,6 +959,7 @@ static AVInputFormat dv_iformat = { .extensions = "dv,dif", }; +#ifdef CONFIG_MUXERS static AVOutputFormat dv_oformat = { "dv", "DV video format", @@ -969,10 +972,13 @@ static AVOutputFormat dv_oformat = { dv_write_packet, dv_write_trailer, }; +#endif int ff_dv_init(void) { av_register_input_format(&dv_iformat); +#ifdef CONFIG_MUXERS av_register_output_format(&dv_oformat); +#endif return 0; } |