Revision ed99e54d libavcodec/aacdec.c

View differences:

libavcodec/aacdec.c
2006 2006
    while ((elem_type = get_bits(&gb, 3)) != TYPE_END) {
2007 2007
        elem_id = get_bits(&gb, 4);
2008 2008

  
2009
        if (elem_type < TYPE_DSE && !(che=get_che(ac, elem_type, elem_id))) {
2009
        if (elem_type < TYPE_DSE) {
2010
        if (!(che=get_che(ac, elem_type, elem_id))) {
2010 2011
            av_log(ac->avctx, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);
2011 2012
            return -1;
2012 2013
        }
2013

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

  
2017 2017
        switch (elem_type) {
2018 2018

  

Also available in: Unified diff