[MPlayer-dev-eng] [PATCH] Fix returned capabilities in libvo/vo_jpeg.c

Alvaro Lopes alvieboy at alvie.com
Sun Jan 19 16:06:00 CET 2003


Hi pontscho et al

vo_jpeg is returning wrong capabilities in query_format(). This patch 
should fix it, and will allow you to get, for example, subtitles in 
.jpeg output.

I believe RGB24 shall return VCAP_CSP_SUPPORTED_BY_HW, am I right here ?

Regards.

--- MPlayer-0.90rc2-orig/libvo/vo_jpeg.c        Sun Nov 24 21:28:32 2002
+++ MPlayer-0.90rc2/libvo/vo_jpeg.c     Sun Jan 19 15:00:07 2003
@@ -5,6 +5,8 @@
  *
  * Copyright 2002 by Pontscho (pontscho at makacs.poliod.hu)
  *
+ * 2003/01/19 Alvaro Lopes <alvieboy at alvie.com>
+ *            - Fix returned capabilities
  */
 
 #include <stdio.h>
@@ -208,10 +210,11 @@
    case IMGFMT_IYUV:
    case IMGFMT_I420:
    case IMGFMT_YV12:
-   case IMGFMT_RGB|24:
    case IMGFMT_BGR|24:
    case IMGFMT_BGR|32:
-        return 1;
+        return VFCAP_CSP_SUPPORTED|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
+  case IMGFMT_RGB|24:
+        return 
VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD|VFCAP_ACCEPT_STRIDE;
   }
  return 0;
 }

-- 

Álvaro Lopes 
---------------------
A .sig is just a .sig




More information about the MPlayer-dev-eng mailing list