avcodec/cdgraphics: Use ff_set_dimensions()