All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcodec.codecs.aac.blocks.BlockFil Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package org.jcodec.codecs.aac.blocks;

import org.jcodec.common.io.BitReader;

/**
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author The JCodec project
 * 
 */
public class BlockFil extends Block {

    public void parse(BitReader in) {
        int num = (int) in.readNBit(4);
        if (num == 15)
            num += (int) in.readNBit(8) - 1;
        if (num > 0)
            if (in.skip(8 * num) != 8 * num)
                throw new RuntimeException("Overread");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy