diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-15 20:31:58 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-15 20:31:58 +0000 |
commit | 21f9a7c8571420a820309d6e76bd78dafe652d97 (patch) | |
tree | 7b5ac72566b9d4b7bdef58090bb5b440d21089b8 /libvo/mga_common.c | |
parent | 448db7e50bab753155de986e1da55687df39016d (diff) | |
download | mpv-21f9a7c8571420a820309d6e76bd78dafe652d97.tar.bz2 mpv-21f9a7c8571420a820309d6e76bd78dafe652d97.tar.xz |
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@449 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 3794584d89..a6dd82ff9a 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -150,9 +150,13 @@ write_frame_yuy2(uint8_t *y) static uint32_t draw_frame(uint8_t *src[]) { - if (mga_vid_config.format==MGA_VID_FORMAT_YUY2) - write_frame_yuy2(src[0]); - return 0; + switch(mga_vid_config.format){ + case MGA_VID_FORMAT_YUY2: + write_frame_yuy2(src[0]);break; + case MGA_VID_FORMAT_UYVY: + write_frame_yuy2(src[0]);break; + } + return 0; } static uint32_t @@ -161,6 +165,7 @@ query_format(uint32_t format) switch(format){ case IMGFMT_YV12: case IMGFMT_YUY2: + case IMGFMT_UYVY: // case IMGFMT_RGB|24: // case IMGFMT_BGR|24: return 1; |