avformat/yuv4mpegdec: simplify math