avcodec/pictordec: Only recalculate d when y changes in picmemset()