summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-09 22:37:27 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-09 22:37:27 +0000
commit28d1f0e0f56406d1f2a99b598d0ad5cdadb630a5 (patch)
tree317ec39b6c4fe25fa9d00310f54af73cc1ba0faf /libvo
parentb94ac62f15535bc566ddb8c6c92c1001793290ea (diff)
downloadmpv-28d1f0e0f56406d1f2a99b598d0ad5cdadb630a5.tar.bz2
mpv-28d1f0e0f56406d1f2a99b598d0ad5cdadb630a5.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_yuv4mpeg.c12
1 files changed, 6 insertions, 6 deletions
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;