From 8bf6f2f34411e7dd83efbd74f9888d7ff6cadc40 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 28 Oct 2007 10:19:09 +0000 Subject: [PATCH] fix odd sized videos SVN revision: 32186 --- legacy/emotion/src/lib/emotion_smart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c index b874ff7416..c80e0d043e 100644 --- a/legacy/emotion/src/lib/emotion_smart.c +++ b/legacy/emotion/src/lib/emotion_smart.c @@ -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);