[FFmpeg-cvslog] mpegvideo: Avoid 32-bit wrapping of linesize multiplications

Joakim Plate elupus at ecce.se
Thu Sep 26 12:22:49 CEST 2013


Martin Storsjö <git <at> videolan.org> writes:

> 
> ffmpeg | branch: release/0.10 | Martin Storsjö <martin <at> martin.st> | Wed 
Sep  4 01:36:51 2013 +0300|
> [5473d23ece9e42a8003fc880027fe242604ce367] | committer: Sean McGovern
> 
> mpegvideo: Avoid 32-bit wrapping of linesize multiplications
> 
>      uint8_t *ptr_y, *ptr_cb, *ptr_cr;
>      int dxy, uvdxy, mx, my, src_x, src_y,
> -        uvsrc_x, uvsrc_y, v_edge_pos, uvlinesize, linesize;
> +        uvsrc_x, uvsrc_y, v_edge_pos;
> +    ptrdiff_t uvlinesize, linesize;
> 


Is there a specific reason you are only correcting this for 64bit machines? 
ptrdiff_t is 32 on 32bit machines (ie no different from int)





More information about the ffmpeg-cvslog mailing list