Revision 0cc4701a libavcodec/mpeg4audio.c

View differences:

libavcodec/mpeg4audio.c
36 36
static inline int get_object_type(GetBitContext *gb)
37 37
{
38 38
    int object_type = get_bits(gb, 5);
39
    if (object_type == 31)
39
    if (object_type == AOT_ESCAPE)
40 40
        object_type = 32 + get_bits(gb, 6);
41 41
    return object_type;
42 42
}
......
66 66
        if (c->object_type == AOT_ER_BSAC)
67 67
            c->ext_chan_config = get_bits(&gb, 4);
68 68
    } else {
69
        c->ext_object_type = 0;
69
        c->ext_object_type = AOT_NULL;
70 70
        c->ext_sample_rate = 0;
71 71
    }
72 72
    specific_config_bitindex = get_bits_count(&gb);

Also available in: Unified diff