changeset 32541:45b3a91e8fb7

Indicate that stereo3d can now handle strides properly.
author reimar
date Sun, 14 Nov 2010 15:35:53 +0000
parents 0143883f2e8b
children 775be5bfdcb3
files libmpcodecs/vf_stereo3d.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_stereo3d.c	Sun Nov 14 15:34:27 2010 +0000
+++ b/libmpcodecs/vf_stereo3d.c	Sun Nov 14 15:35:53 2010 +0000
@@ -247,7 +247,8 @@
         int in_off_right = vf->priv->in.row_right  * mpi->stride[0]  +
                            vf->priv->in.off_right;
 
-        dmpi = vf_get_image(vf->next, IMGFMT_RGB24, MP_IMGTYPE_TEMP, 0,
+        dmpi = vf_get_image(vf->next, IMGFMT_RGB24, MP_IMGTYPE_TEMP,
+                            MP_IMGFLAG_ACCEPT_STRIDE,
                             vf->priv->out.width, vf->priv->out.height);
         out_off_left   = vf->priv->out.row_left  * dmpi->stride[0] +
                          vf->priv->out.off_left;
@@ -349,7 +350,6 @@
     vf->uninit          = uninit;
     vf->put_image       = put_image;
     vf->query_format    = query_format;
-    vf->default_reqs    = VFCAP_ACCEPT_STRIDE;
 
     return 1;
 }