Revision fda36b59 libavcodec/aacdec.c

View differences:

libavcodec/aacdec.c
1985 1985
    enum RawDataBlockType elem_type, elem_type_prev = TYPE_END;
1986 1986
    int err, elem_id, data_size_tmp;
1987 1987
    int buf_consumed;
1988
    int samples = 1024, multiplier;
1988
    int samples = 0, multiplier;
1989 1989
    int buf_offset;
1990 1990

  
1991 1991
    init_get_bits(&gb, buf, buf_size * 8);
......
2011 2011
            return -1;
2012 2012
        }
2013 2013

  
2014
        if (elem_type < TYPE_DSE)
2015
            samples = 1024;
2016

  
2014 2017
        switch (elem_type) {
2015 2018

  
2016 2019
        case TYPE_SCE:
......
2093 2096
    }
2094 2097
    *data_size = data_size_tmp;
2095 2098

  
2099
    if (samples)
2096 2100
    ac->dsp.float_to_int16_interleave(data, (const float **)ac->output_data, samples, avctx->channels);
2097 2101

  
2098 2102
    if (ac->output_configured)

Also available in: Unified diff