avcodec/dds: Use ff_set_dimensions()