changeset 33819:6451d20ff7c1

Avoid typedef.
author reimar
date Sun, 24 Jul 2011 19:43:47 +0000
parents fc9fbb0b31fa
children 4c888b1d8cac
files libvo/vo_directx.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sun Jul 24 19:40:45 2011 +0000
+++ b/libvo/vo_directx.c	Sun Jul 24 19:43:47 2011 +0000
@@ -80,13 +80,11 @@
     0x4b9f0ee0, 0x0d7e, 0x11d0, { 0x9b, 0x06, 0x00, 0xa0, 0xc9, 0x03, 0xa3, 0xb8 }
 };
 
-typedef struct directx_fourcc_caps {
+struct directx_fourcc_caps {
     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;
-
-static const directx_fourcc_caps g_ddpf[] = {
+} static const g_ddpf[] = {
     { "YV12 ", IMGFMT_YV12,  { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'V', '1', '2'), 0, 0, 0, 0, 0 } },
     { "I420 ", IMGFMT_I420,  { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', '4', '2', '0'), 0, 0, 0, 0, 0 } }, //yv12 with swapped uv
     { "IYUV ", IMGFMT_IYUV,  { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', 'Y', 'U', 'V'), 0, 0, 0, 0, 0 } }, //same as i420