avcodec/mimic: Use ff_set_dimensions() to set the dimensions