avcodec/g2meet: check the return code of ff_set_dimensions()