humble-video-noarch/src/main/java/io/humble/video/Demuxer.java
public int read(MediaPacket packet) throws java.lang.InterruptedException, java.io.IOException {
    return VideoJNI.Demuxer_read(swigCPtr, this, MediaPacket.getCPtr(packet), packet);
  }
public int read(MediaPacket packet) throws java.lang.InterruptedException, java.io.IOException {
    return VideoJNI.Demuxer_read(swigCPtr, this, MediaPacket.getCPtr(packet), packet);
  }
Reads the next packet in the Demuxer into the Packet.  This method will<br>
release any buffers currently held by this packet and allocate<br>
new ones.<br>
<p><br>
For non-blocking IO data sources, it is possible for this method<br>
to return as successful but with no complete packet. In that case<br>
the caller should retry again later (think EAGAIN) semantics.<br>
</p><br>
<br>
@param packet [In/Out] The packet the Demuxer will read into.<br>
<br>
@return 0 if successful, or &lt;0 if not.<br>
@throws RuntimeException if an error occurs except for EOF (in which case &lt;0 returned)<br>
or EAGAIN (in which case 0 returned with an incomplete packet).