code: private void createImageBuffer() throws JavaAVException {
  		int format = pixelFormat.value();
  		int width = avContext.width();
  		int height = avContext.height();
  
  		picture = new AVPicture();
  
  		if (avpicture_alloc(picture, format, width, height) < 0)
  			throw new JavaAVException("Could not allocate picture.");
  	}
docs: Create resampled picture buffer. This is only needed if the decoded picture format
  differs from the desired format.
  
  @throws JavaAVException if picture buffer could not be allocated.