avcodec/utvideodec: fix gradient prediction when stride does not match width