[MPlayer-cvslog] r35147 - trunk/libvo/video_out.h

reimar subversion at mplayerhq.hu
Mon Sep 3 23:29:59 CEST 2012


Author: reimar
Date: Mon Sep  3 23:29:58 2012
New Revision: 35147

Log:
Fix OSD position again for interleaved YUV formats.

Modified:
   trunk/libvo/video_out.h

Modified: trunk/libvo/video_out.h
==============================================================================
--- trunk/libvo/video_out.h	Mon Sep  3 00:16:17 2012	(r35146)
+++ trunk/libvo/video_out.h	Mon Sep  3 23:29:58 2012	(r35147)
@@ -284,6 +284,8 @@ static inline int pixel_stride(unsigned 
         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;
 }
 


More information about the MPlayer-cvslog mailing list