changeset 33816:65c7223dd37a

Store fixed-length string directly in struct, avoid pointer indirection.
author reimar
date Sun, 24 Jul 2011 19:31:26 +0000
parents 4d75b3bf9561
children a3d73bc21e55
files libvo/vo_directx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sun Jul 24 19:29:10 2011 +0000
+++ b/libvo/vo_directx.c	Sun Jul 24 19:31:26 2011 +0000
@@ -81,7 +81,7 @@
 };
 
 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;