code: public void close() {
  		if (formatContext != null && !formatContext.isNull()) {
  			avformat_close_input(formatContext);
  			formatContext = null;
  		}
  
  		/*
  		 * Set codec context explicitly to null since avformat_close_input already released it.
  		 * This way the decoder knows the context is already closed.
  		 */
  		for (Integer index : videoDecoders.keySet()) {
  			videoDecoders.get(index).getCodec().getContext().setNull();
  			videoDecoders.get(index).close();
  		}
  		for (Integer index : audioDecoders.keySet()) {
  			audioDecoders.get(index).getCodec().getContext().setNull();
  			audioDecoders.get(index).close();
  		}
  
  		videoDecoders = null;
  		audioDecoders = null;
  	}
docs: Close this {@code Demuxer} and free allocated memory.