Revision b5e2bb8c libavcodec/aac.c

View differences:

libavcodec/aac.c
1948 1948
    GetBitContext gb;
1949 1949
    enum RawDataBlockType elem_type;
1950 1950
    int err, elem_id, data_size_tmp;
1951
    int buf_consumed;
1951 1952

  
1952 1953
    init_get_bits(&gb, buf, buf_size * 8);
1953 1954

  
......
2048 2049
    if (ac->output_configured)
2049 2050
        ac->output_configured = OC_LOCKED;
2050 2051

  
2051
    return buf_size;
2052
    buf_consumed = (get_bits_count(&gb) + 7) >> 3;
2053
    return buf_size > buf_consumed ? buf_consumed : buf_size;
2052 2054
}
2053 2055

  
2054 2056
static av_cold int aac_decode_close(AVCodecContext *avccontext)

Also available in: Unified diff