[FFmpeg-devel] [PATCH] make sure blending the subtitle does not write outside buffer

Michael Niedermayer michaelni
Sun Aug 5 12:12:26 CEST 2007


Hi

On Sun, Aug 05, 2007 at 11:00:04AM +0200, Reimar D?ffinger wrote:
> Hello,
> attached patch fixes the subtitle rectangles so they do not lie outside
> the video, which can cause crashes.

hmm, this seems like a hack to me
shouldnt blend_subrect "skip" the parts of a rectange which are outside
of the image?

that said blend_subrect() needs a cleanup, theres no need to have 9 cases
handled like that, a generic and a fast one for the middle would do

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070805/e97ae2a3/attachment.pgp>



More information about the ffmpeg-devel mailing list