]> git.sesse.net Git - vlc/commit
logo: check for negative offsets
authorErwan Tulou <erwan10@videolan.org>
Wed, 1 Aug 2012 23:52:09 +0000 (01:52 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 2 Aug 2012 00:34:25 +0000 (02:34 +0200)
commitde3ebb997fc44bff4c5494069e2ec53bb7cbfac0
tree80c3dbb6706b0fc22615b5107a74c15e585a99ad
parent6213e4acc08162a0fe1f8911a069fe42f55c767e
logo: check for negative offsets

if a logo is bigger than a video and if positioning results in negative
offsets, vlc crashes in the blend function.

This patch adds a warning, and offset is forced to 0 if negative.

Note that a bigger logo is not a problem per se. (Blend truncates the logo).
Only offsetting it with negative values was a problem.
modules/video_filter/logo.c