# HG changeset patch # User ksorim # Date 1016879091 0 # Node ID 6280f4ac324f033a6a23822b61f196e415d572f8 # Parent e5f57c576c48e63de81b656b3b534e4d45cbe38f Fix swapped uv planes when playing yv12 data with direct rendering diff -r e5f57c576c48 -r 6280f4ac324f libvo/vo_sdl.c --- a/libvo/vo_sdl.c Sat Mar 23 10:09:39 2002 +0000 +++ b/libvo/vo_sdl.c Sat Mar 23 10:24:51 2002 +0000 @@ -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) {