changeset 35053:dda2444f4825

Fix OSD position again for interleaved YUV formats.
author reimar
date Mon, 03 Sep 2012 21:29:58 +0000
parents 60e92b725c3d
children 37a527d635ef
files libvo/video_out.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/video_out.h	Sun Sep 02 22:16:17 2012 +0000
+++ b/libvo/video_out.h	Mon Sep 03 21:29:58 2012 +0000
@@ -284,6 +284,8 @@
         return (IMGFMT_RGB_DEPTH(fmt) + 7) / 8;
     if (IMGFMT_IS_BGR(fmt))
         return (IMGFMT_BGR_DEPTH(fmt) + 7) / 8;
+    if (fmt == IMGFMT_YUY2 || fmt == IMGFMT_UYVY)
+        return 2;
     return IMGFMT_IS_YUVP16(fmt) ? 2 : 1;
 }