On 03/09/13 22:34, Martin Storsjö wrote:
> From: Michael Niedermayer <[email protected]>
> 
> If the src_y variable is very large, the multiplication
> src_y * linesize might overflow. The same multiplication is
> done in the caller (e.g. mpeg_motion_internal) where both src_y
> and linesize are ints, where part of this offsetting is undone
> within emulated_edge_mc. If this multplication overflowed in the
> caller, make sure it overflows in the same way here.
> 
> This is mostly relevant for e.g. h263+ where the motion vectors
> can be unrestricted.
> 

Wouldn't make more sense using the int64 in the caller as well?

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to