Commit 7194330b authored by Anton Khirnov's avatar Anton Khirnov

vf_delogo: fix copying the input frame.

CC:libav-stable@libav.org
parent f81c37e4
...@@ -80,12 +80,12 @@ static void apply_delogo(uint8_t *dst, int dst_linesize, ...@@ -80,12 +80,12 @@ static void apply_delogo(uint8_t *dst, int dst_linesize,
topright = src+logo_y1 * src_linesize+logo_x2-1; topright = src+logo_y1 * src_linesize+logo_x2-1;
botleft = src+(logo_y2-1) * src_linesize+logo_x1; botleft = src+(logo_y2-1) * src_linesize+logo_x1;
dst += (logo_y1+1)*dst_linesize;
src += (logo_y1+1)*src_linesize;
if (!direct) if (!direct)
av_image_copy_plane(dst, dst_linesize, src, src_linesize, w, h); av_image_copy_plane(dst, dst_linesize, src, src_linesize, w, h);
dst += (logo_y1 + 1) * dst_linesize;
src += (logo_y1 + 1) * src_linesize;
for (y = logo_y1+1; y < logo_y2-1; y++) { for (y = logo_y1+1; y < logo_y2-1; y++) {
for (x = logo_x1+1, for (x = logo_x1+1,
xdst = dst+logo_x1+1, xdst = dst+logo_x1+1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment