code: public void close() {
  		if (avFrame != null) {
  			avcodec_free_frame(avFrame);
  			avFrame = null;
  		}
  
  		if (avContext != null && !avContext.isNull()) {
  			avcodec_close(avContext);
  
  			if (avContext.extradata() != null)
  				av_free(avContext.extradata());
  
  			av_free(avContext);
  
  			avContext = null;
  		}
  
  		state = State.Closed;
  	}
docs: Close this {@code Coder} and free allocated memory.