From 28d1f0e0f56406d1f2a99b598d0ad5cdadb630a5 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 9 Oct 2002 22:37:27 +0000 Subject: since draw_slice() can handle packed RGB too, set the VFCAP_ACCEPT_STRIDE flag git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7689 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_yuv4mpeg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libvo/vo_yuv4mpeg.c') diff --git a/libvo/vo_yuv4mpeg.c b/libvo/vo_yuv4mpeg.c index 00abb34832..0a6cb3a14f 100644 --- a/libvo/vo_yuv4mpeg.c +++ b/libvo/vo_yuv4mpeg.c @@ -347,8 +347,8 @@ static uint32_t draw_frame(uint8_t * src[]) // gets done in draw_slice break; - case IMGFMT_BGR|24: - case IMGFMT_RGB|24: + case IMGFMT_BGR24: + case IMGFMT_RGB24: memcpy(rgb_buffer, src[0], image_width * image_height * 3); break; } @@ -367,10 +367,10 @@ static uint32_t query_format(uint32_t format) switch(format) { case IMGFMT_YV12: - return VFCAP_CSP_SUPPORTED|VFCAP_OSD; + return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; case IMGFMT_BGR|24: case IMGFMT_RGB|24: - return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; + return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; } } else @@ -379,10 +379,10 @@ static uint32_t query_format(uint32_t format) switch(format) { case IMGFMT_YV12: - return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; + return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; case IMGFMT_BGR|24: case IMGFMT_RGB|24: - return VFCAP_CSP_SUPPORTED|VFCAP_OSD; + return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE; } } return 0; -- cgit v1.2.3