// if we had a frame rate suggested, but we
// didn't find a match among the supported elements,
// throw an error.
if (IRational.positive(frameRate) &&
(highestResolution == null ||
highestResolution.compareTo(frameRate) != 0))
throw new UnsupportedOperationException("container does not"+
" support encoding at given frame rate: " + frameRate);
// if we got through the supported list and found NO valid
// resolution, fail.