Mercurial > libavformat.hg
changeset 3560:507108c26477 libavformat
Move a function and an #ifdef CONFIG_MUXERS so that functions used only for
muxing get disabled when compiling with --disable-muxers.
author | diego |
---|---|
date | Fri, 11 Jul 2008 07:39:33 +0000 |
parents | 6edd87f61261 |
children | bc473761b9e7 |
files | mmf.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mmf.c Fri Jul 11 07:37:22 2008 +0000 +++ b/mmf.c Fri Jul 11 07:39:33 2008 +0000 @@ -29,6 +29,14 @@ 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 @@ 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) {