Revision 37673b1b

View differences:

libavformat/mmf.c
29 29

  
30 30
static int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 };
31 31

  
32
static int mmf_rate(int code)
33
{
34
    if((code < 0) || (code > 4))
35
        return -1;
36
    return mmf_rates[code];
37
}
38

  
39
#ifdef CONFIG_MUXERS
32 40
static int mmf_rate_code(int rate)
33 41
{
34 42
    int i;
......
38 46
    return -1;
39 47
}
40 48

  
41
static int mmf_rate(int code)
42
{
43
    if((code < 0) || (code > 4))
44
        return -1;
45
    return mmf_rates[code];
46
}
47

  
48
#ifdef CONFIG_MUXERS
49 49
/* Copy of end_tag() from avienc.c, but for big-endian chunk size */
50 50
static void end_tag_be(ByteIOContext *pb, offset_t start)
51 51
{

Also available in: Unified diff