diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-07-11 07:39:33 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-07-11 07:39:33 +0000 |
commit | 37673b1bddaa99fa6b6c0ed8292c7d9381b4835c (patch) | |
tree | 49ccabd6efa87aad6c96332271c4310d6a135c93 | |
parent | 66b32ce8d0918c1c50e0e8fd91bb197e1e9244ea (diff) | |
download | ffmpeg-37673b1bddaa99fa6b6c0ed8292c7d9381b4835c.tar.gz |
Move a function and an #ifdef CONFIG_MUXERS so that functions used only for
muxing get disabled when compiling with --disable-muxers.
Originally committed as revision 14163 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mmf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c index 31160a91ec..47b84e8c90 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -29,6 +29,14 @@ typedef struct { static int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 }; +static int mmf_rate(int code) +{ + if((code < 0) || (code > 4)) + return -1; + return mmf_rates[code]; +} + +#ifdef CONFIG_MUXERS static int mmf_rate_code(int rate) { int i; @@ -38,14 +46,6 @@ static int mmf_rate_code(int rate) return -1; } -static int mmf_rate(int code) -{ - if((code < 0) || (code > 4)) - return -1; - return mmf_rates[code]; -} - -#ifdef CONFIG_MUXERS /* Copy of end_tag() from avienc.c, but for big-endian chunk size */ static void end_tag_be(ByteIOContext *pb, offset_t start) { |