changeset 36518:3e7ce8fc870d

vo_sdl: set VFCAP_FLIP correctly. For interleaved YUV formats there is special flipping code.
author reimar
date Sat, 18 Jan 2014 23:08:28 +0000
parents 5d3f93051de9
children a76b46200616
files libvo/vo_sdl.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Sat Jan 18 21:39:07 2014 +0000
+++ b/libvo/vo_sdl.c	Sat Jan 18 23:08:28 2014 +0000
@@ -1231,11 +1231,13 @@
 // it seems buggy (not hw accelerated), so just use YV12 instead!
 //    case IMGFMT_I420:
 //    case IMGFMT_IYUV:
+        return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_OSD |
+            VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN;
     case IMGFMT_YUY2:
     case IMGFMT_UYVY:
     case IMGFMT_YVYU:
         return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_OSD |
-            VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN;
+            VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_FLIP;
     case IMGFMT_RGB15:
     case IMGFMT_BGR15:
     case IMGFMT_RGB16: