avcodec/xpmdec: Do not use context dimensions as temporary variables