[PATCH v2 2/5] vo_xv: When copying planes use the associated pitch
Alexander Strasser <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <e5e8504bc4e9af67dce561b9867ed42a0c0a690d.1499634736.git.eclipse7@gmx.net> |
This probably never mattered as the chroma planes probably always had used the same pitch value in their layouts. Signed-off-by: Alexander Strasser <[email protected]> --- libvo/vo_xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index a39c8d504..783e91d84 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -409,7 +409,7 @@ static int draw_slice(uint8_t * image[], int stride[], int w, int h, dst = xvimage[current_buf]->data + xvimage[current_buf]->offsets[2] + xvimage[current_buf]->pitches[2] * y + x; - memcpy_pic(dst, image[idx_p2], w, h, xvimage[current_buf]->pitches[1], + memcpy_pic(dst, image[idx_p2], w, h, xvimage[current_buf]->pitches[2], stride[idx_p2]); break; } -- 2.13.2 Alexander _______________________________________________ MPlayer-dev-eng mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng