Commit 0c291794 authored by diego's avatar diego

Move a function and an #ifdef CONFIG_MUXERS so that functions used only for

muxing get disabled when compiling with --disable-muxers.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14163 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ec558183
...@@ -29,6 +29,14 @@ typedef struct { ...@@ -29,6 +29,14 @@ typedef struct {
static int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 }; 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) static int mmf_rate_code(int rate)
{ {
int i; int i;
...@@ -38,14 +46,6 @@ static int mmf_rate_code(int rate) ...@@ -38,14 +46,6 @@ static int mmf_rate_code(int rate)
return -1; 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 */ /* Copy of end_tag() from avienc.c, but for big-endian chunk size */
static void end_tag_be(ByteIOContext *pb, offset_t start) static void end_tag_be(ByteIOContext *pb, offset_t start)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment