[Mplayer-cvslog] CVS: main/libvo vo_sdl.c,1.77,1.78
Fredrik Kuivinen CVS
ksorim at mplayer.dev.hu
Sat Mar 23 11:24:53 CET 2002
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv9626
Modified Files:
vo_sdl.c
Log Message:
Fix swapped uv planes when playing yv12 data with direct rendering
Index: vo_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_sdl.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- vo_sdl.c 23 Mar 2002 10:09:39 -0000 1.77
+++ vo_sdl.c 23 Mar 2002 10:24:51 -0000 1.78
@@ -1637,11 +1637,11 @@
if(mpi->type == MP_IMGTYPE_STATIC || mpi->type == MP_IMGTYPE_TEMP) {
if(priv->format == IMGFMT_YV12 || priv->format == SDL_IYUV_OVERLAY) {
mpi->planes[0] = priv->overlay->pixels[0] + priv->y*priv->overlay->pitches[0];
- mpi->planes[1] = priv->overlay->pixels[1] + priv->y*priv->overlay->pitches[1]/2;
- mpi->planes[2] = priv->overlay->pixels[2] + priv->y*priv->overlay->pitches[2]/2;
+ mpi->planes[2] = priv->overlay->pixels[1] + priv->y*priv->overlay->pitches[1]/2;
+ mpi->planes[1] = priv->overlay->pixels[2] + priv->y*priv->overlay->pitches[2]/2;
mpi->stride[0] = priv->overlay->pitches[0];
- mpi->stride[1] = priv->overlay->pitches[1];
- mpi->stride[2] = priv->overlay->pitches[2];
+ mpi->stride[2] = priv->overlay->pitches[1];
+ mpi->stride[1] = priv->overlay->pitches[2];
}
else if(IMGFMT_IS_RGB(priv->format) || IMGFMT_IS_BGR(priv->format)) {
if(priv->dblit) {
More information about the MPlayer-cvslog
mailing list