1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

in some cases, vf_bmovl produces junk due to source and

destination stride mismatch. The attached patch fixes it by replacing
memcpy with memcpy_pic.
Patch by Jindrich Makovicka
Original thread:
Date: Jul 12, 2006 6:35 PM
Subject: [MPlayer-dev-eng] [PATCH] vf_bmovl: respect destination stride


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19171 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2006-07-23 14:35:04 +00:00
parent e746e16d88
commit a759a80397

View File

@ -211,9 +211,9 @@ put_image(struct vf_instance_s* vf, mp_image_t* mpi, double pts){
MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
mpi->w, mpi->h);
memcpy( dmpi->planes[0], mpi->planes[0], mpi->stride[0] * mpi->height);
memcpy( dmpi->planes[1], mpi->planes[1], mpi->stride[1] * mpi->chroma_height);
memcpy( dmpi->planes[2], mpi->planes[2], mpi->stride[2] * mpi->chroma_height);
memcpy_pic( dmpi->planes[0], mpi->planes[0], mpi->width, mpi->height, dmpi->stride[0], mpi->stride[0] );
memcpy_pic( dmpi->planes[1], mpi->planes[1], mpi->chroma_width, mpi->chroma_height, dmpi->stride[1], mpi->stride[1] );
memcpy_pic( dmpi->planes[2], mpi->planes[2], mpi->chroma_width, mpi->chroma_height, dmpi->stride[2], mpi->stride[2] );
if(vf->priv->stream_fd >= 0) {
struct timeval tv;