mpegvideo: Avoid 32-bit wrapping of linesize multiplications
authorMartin Storsjö <martin@martin.st>
Tue, 3 Sep 2013 22:36:51 +0000 (01:36 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 4 Sep 2013 11:33:29 +0000 (14:33 +0300)
commita711a2cb473dc95708f371a82c85c97fe789b5c2
treee558b0bd4a86175726a499b41c47ce6a76d1689c
parent0ebfdae099d2749240b6a565abcdf0bf62589748
mpegvideo: Avoid 32-bit wrapping of linesize multiplications

This makes sure that linesize * start_y doesn't overflow, so that
emulated_edge_mc can get back the original value if needed.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/mpegvideo_motion.c