changeset 5279:652ec33400fd

10l, hopefully fixed query format
author alex
date Sat, 23 Mar 2002 17:27:46 +0000
parents a11cd73811a8
children ea8f3e8f39c1
files libmpcodecs/vd_zlib.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_zlib.c	Sat Mar 23 17:16:49 2002 +0000
+++ b/libmpcodecs/vd_zlib.c	Sat Mar 23 17:27:46 2002 +0000
@@ -31,11 +31,12 @@
 // to set/get/query special features/parameters
 static int control(sh_video_t *sh, int cmd, void *arg, ...)
 {
+    vd_zlib_ctx *ctx = sh->context;
     switch(cmd)
     {
 	case VDCTRL_QUERY_FORMAT:
 	{
-	    if (*((int*)arg) == IMGFMT_BGR24)
+	    if (*((int*)arg) == (IMGFMT_BGR|ctx->depth))
 		return(CONTROL_TRUE);
 	    else
 		return(CONTROL_FALSE);