mpegvideo: Avoid 32-bit wrapping of linesize multiplications