[MPlayer-cvslog] r33904 - trunk/libvo/vo_directx.c

reimar subversion at mplayerhq.hu
Sun Jul 24 21:31:26 CEST 2011


Author: reimar
Date: Sun Jul 24 21:31:26 2011
New Revision: 33904

Log:
Store fixed-length string directly in struct, avoid pointer indirection.

Modified:
   trunk/libvo/vo_directx.c

Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c	Sun Jul 24 21:29:10 2011	(r33903)
+++ trunk/libvo/vo_directx.c	Sun Jul 24 21:31:26 2011	(r33904)
@@ -81,7 +81,7 @@ static const GUID MP_IID_IDirectDrawColo
 };
 
 typedef struct directx_fourcc_caps {
-    char *img_format_name;      //human readable name
+    char img_format_name[6];    //human readable name
     uint32_t img_format;        //as MPlayer image format
     DDPIXELFORMAT g_ddpfOverlay; //as Directx Sourface description
 } directx_fourcc_caps;


More information about the MPlayer-cvslog mailing list