summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-23 11:55:26 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-23 11:55:26 +0000
commita731d0e0e6eb2edefd486d67038520bcf7e921fd (patch)
treed88c8e09061e291846febee26ca5e86d97206e0b /libmpcodecs
parentee673b2ed304132dc1fb1253466074d7643ca1b7 (diff)
downloadmpv-a731d0e0e6eb2edefd486d67038520bcf7e921fd.tar.bz2
mpv-a731d0e0e6eb2edefd486d67038520bcf7e921fd.tar.xz
revert the flip part of vd_theora fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14782 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_theora.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c
index 099563c15e..8841ccb5f9 100644
--- a/libmpcodecs/vd_theora.c
+++ b/libmpcodecs/vd_theora.c
@@ -167,14 +167,15 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
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;
}