examples/video-play: Use correct SDL enum values

This commit is contained in:
Jonas Ådahl 2017-05-11 16:23:31 +08:00 committed by Wim Taymans
parent d26eb2da23
commit 5cb35d8bc1

View file

@ -195,10 +195,10 @@ static struct {
{ SDL_PIXELFORMAT_BGR888, offsetof (SpaTypeVideoFormat, BGR), }, { SDL_PIXELFORMAT_BGR888, offsetof (SpaTypeVideoFormat, BGR), },
{ SDL_PIXELFORMAT_BGRX8888, offsetof (SpaTypeVideoFormat, BGRx), }, { SDL_PIXELFORMAT_BGRX8888, offsetof (SpaTypeVideoFormat, BGRx), },
{ SDL_PIXELFORMAT_ARGB2101010, offsetof (SpaTypeVideoFormat, UNKNOWN), }, { SDL_PIXELFORMAT_ARGB2101010, offsetof (SpaTypeVideoFormat, UNKNOWN), },
{ SDL_PIXELFORMAT_RGBA32, offsetof (SpaTypeVideoFormat, RGBA), }, { SDL_PIXELFORMAT_RGBA8888, offsetof (SpaTypeVideoFormat, RGBA), },
{ SDL_PIXELFORMAT_ARGB32, offsetof (SpaTypeVideoFormat, ARGB), }, { SDL_PIXELFORMAT_ARGB8888, offsetof (SpaTypeVideoFormat, ARGB), },
{ SDL_PIXELFORMAT_BGRA32, offsetof (SpaTypeVideoFormat, BGRA), }, { SDL_PIXELFORMAT_BGRA8888, offsetof (SpaTypeVideoFormat, BGRA), },
{ SDL_PIXELFORMAT_ABGR32, offsetof (SpaTypeVideoFormat, ABGR), }, { SDL_PIXELFORMAT_ABGR8888, offsetof (SpaTypeVideoFormat, ABGR), },
{ SDL_PIXELFORMAT_YV12, offsetof (SpaTypeVideoFormat, YV12), }, { SDL_PIXELFORMAT_YV12, offsetof (SpaTypeVideoFormat, YV12), },
{ SDL_PIXELFORMAT_IYUV, offsetof (SpaTypeVideoFormat, I420), }, { SDL_PIXELFORMAT_IYUV, offsetof (SpaTypeVideoFormat, I420), },
{ SDL_PIXELFORMAT_YUY2, offsetof (SpaTypeVideoFormat, YUY2), }, { SDL_PIXELFORMAT_YUY2, offsetof (SpaTypeVideoFormat, YUY2), },