[MPlayer-cvslog] CVS: main/libmpcodecs vd_theora.c,1.6,1.7
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Wed Feb 23 12:55:28 CET 2005
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv19117
Modified Files:
vd_theora.c
Log Message:
revert the flip part of vd_theora fix
Index: vd_theora.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_theora.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vd_theora.c 22 Feb 2005 19:18:44 -0000 1.6
+++ vd_theora.c 23 Feb 2005 11:55:26 -0000 1.7
@@ -167,14 +167,15 @@
return 0;
}
- mpi = mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0, yuv.y_stride, yuv.y_height);
+ mpi = mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0, yuv.y_width, yuv.y_height);
if(!mpi) return NULL;
- mpi->planes[0]=yuv.y+yuv.y_stride*(context->inf.frame_height-1);
- mpi->stride[0]=-yuv.y_stride;
- mpi->planes[1]=yuv.u+yuv.uv_stride*(context->inf.frame_height/2-1);
- mpi->stride[1]=-yuv.uv_stride;
- mpi->planes[2]=yuv.v+yuv.uv_stride*(context->inf.frame_height/2-1);
- mpi->stride[2]=-yuv.uv_stride;
+
+ mpi->planes[0]=yuv.y;
+ mpi->stride[0]=yuv.y_stride;
+ mpi->planes[1]=yuv.u;
+ mpi->stride[1]=yuv.uv_stride;
+ mpi->planes[2]=yuv.v;
+ mpi->stride[2]=yuv.uv_stride;
return mpi;
}
More information about the MPlayer-cvslog
mailing list