[MPlayer-dev-eng] [PATCH] Fix packed YUV in dshow vo

Laurent laurent.aml at gmail.com
Mon Oct 6 20:30:31 CEST 2008


On 10/6/08, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
>
> Hm, I didn't read the patch properly before, but now I realize: is that
> not the same thing that
> memcpy_pic(image, mpi->planes[0], FFMIN(source_stride, dest_stride), dest_stride, source_stride);
> does?
> Except that FFMIN(source_stride, dest_stride) should actually be width *
> bytes_per_pixel.

That's it.
This is definitely how other VOs are handling Packed YUV copy (eg vo_xv.c).

I was not sure how to compute the bytes per line, since
bytes_per_pixel is an average, though, this seems not to be an issue.

Attached, the final patch, I guess.

Thanks,
Laurent
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvo_directx.c.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081006/75b247a3/attachment.txt>


More information about the MPlayer-dev-eng mailing list