src/main/java/org/jcodec/common/io/DummyBitstreamReader.java
public boolean moreRBSPData() throws IOException {
        if (nBit == 8) {
            advance();
        }
        int tail = 1 << (8 - nBit - 1);
        int mask = ((tail << 1) - 1);
        boolean hasTail = (curByte & mask) == tail;

        return !(curByte == -1 || (nextByte == -1 && hasTail));
    }
public boolean moreRBSPData() throws IOException {
        if (nBit == 8) {
            advance();
        }
        int tail = 1 << (8 - nBit - 1);
        int mask = ((tail << 1) - 1);
        boolean hasTail = (curByte & mask) == tail;

        return !(curByte == -1 || (nextByte == -1 && hasTail));
    }
public boolean moreRBSPData ( ) throws IOException { if ( nBit == 8 ) { advance ( ) ; } int tail = 1 << ( 8 - nBit - 1 ) ; int mask = ( ( tail << 1 ) - 1 ) ; boolean hasTail = ( curByte & mask ) == tail ; return ! ( curByte == - 1 || ( nextByte == - 1 && hasTail ) ) ; }
/*
(non-Javadoc)

@see ua.org.jplayer.javcodec.h264.RBSPInputStream#moreRBSPData()
/ * ( non - Javadoc )