changeset 14781:28e19750b448

revert the flip part of vd_theora fix
author henry
date Wed, 23 Feb 2005 11:55:26 +0000
parents ebe6ca6e687c
children b0b668d69632
files libmpcodecs/vd_theora.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_theora.c	Wed Feb 23 11:10:35 2005 +0000
+++ b/libmpcodecs/vd_theora.c	Wed Feb 23 11:55:26 2005 +0000
@@ -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;
 }