Hi,

$subject.

Round up w/h of the overlay logo.

I'm not 100% sure of this.

--
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org
Index: vf_overlay.c
===================================================================
--- vf_overlay.c	(revision 5798)
+++ vf_overlay.c	(working copy)
@@ -348,6 +348,12 @@
     y = FFMIN(over->y, link->h-1);
     w = FFMIN(link->w-x, over->pics[1][0]->w);
     h = FFMIN(link->h-y, over->pics[1][0]->h);
+
+    x &= ~((1 << over->hsub) - 1);
+    y &= ~((1 << over->vsub) - 1);
+    w = (w+((1<<over->hsub)-1))>>over->hsub;
+    h = (h+((1<<over->vsub)-1))>>over->vsub;
+
     if(over->pics[1][0])
         copy_image(pic, x, y, over->pics[1][0], w, h,
                    over->bpp, over->hsub, over->vsub);
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to