fix odd sized videos
authorraster <raster>
Sun, 28 Oct 2007 10:19:09 +0000 (10:19 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 28 Oct 2007 10:19:09 +0000 (10:19 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@32186 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/emotion_smart.c

index b874ff7..c80e0d0 100644 (file)
@@ -1027,6 +1027,8 @@ _pixels_get(void *data, Evas_Object *obj)
    sd = data;
    evas_object_image_size_get(obj, &iw, &ih);
    sd->module->video_data_size_get(sd->video, &w, &h);
+   w = (w >> 1) << 1;
+   h = (h >> 1) << 1;
    if ((w != iw) || (h != ih))
      {
        evas_object_image_colorspace_set(obj, EVAS_COLORSPACE_YCBCR422P601_PL);