Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv27075 Modified Files: vo_yuv4mpeg.c Log Message: since draw_slice() can handle packed RGB too, set the VFCAP_ACCEPT_STRIDE flag Index: vo_yuv4mpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_yuv4mpeg.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- vo_yuv4mpeg.c 28 Aug 2002 21:32:32 -0000 1.11 +++ vo_yuv4mpeg.c 9 Oct 2002 22:37:27 -0000 1.12 @@ -347,8 +347,8 @@ // 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 @@ 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 @@ 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;
participants (1)
-
Arpi of Ize