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/nut.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/nut.c')
-rw-r--r-- | libavformat/nut.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 8fc24111de..8a8c3d5bd3 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -133,6 +133,7 @@ static int get_length(uint64_t val){ return 7; //not reached } +#ifdef CONFIG_ENCODERS static int put_v(ByteIOContext *bc, uint64_t val) { int i; @@ -393,6 +394,7 @@ static int nut_write_trailer(AVFormatContext *s) return 0; } +#endif //CONFIG_ENCODERS static int nut_probe(AVProbeData *p) { @@ -561,6 +563,7 @@ static AVInputFormat nut_iformat = { .extensions = "nut", }; +#ifdef CONFIG_ENCODERS static AVOutputFormat nut_oformat = { "nut", "nut format", @@ -579,10 +582,13 @@ static AVOutputFormat nut_oformat = { nut_write_packet, nut_write_trailer, }; +#endif //CONFIG_ENCODERS int nut_init(void) { av_register_input_format(&nut_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&nut_oformat); +#endif //CONFIG_ENCODERS return 0; } |