Revision ebb7f7de libavcodec/aacdec.c

View differences:

libavcodec/aacdec.c
2310 2310
    if (get_bits(&gb, 11) != LOAS_SYNC_WORD)
2311 2311
        return AVERROR_INVALIDDATA;
2312 2312

  
2313
    muxlength = get_bits(&gb, 13);
2313
    muxlength = get_bits(&gb, 13) + 3;
2314 2314
    // not enough data, the parser should have sorted this
2315
    if (muxlength+3 > avpkt->size)
2315
    if (muxlength > avpkt->size)
2316 2316
        return AVERROR_INVALIDDATA;
2317 2317

  
2318 2318
    if ((err = read_audio_mux_element(latmctx, &gb)) < 0)

Also available in: Unified diff