# HG changeset patch # User alex # Date 1016904466 0 # Node ID 652ec33400fdf07880b0a47af6922ccb2f2b3c21 # Parent a11cd73811a81d625be76564e7b2eaf43e193dda 10l, hopefully fixed query format diff -r a11cd73811a8 -r 652ec33400fd libmpcodecs/vd_zlib.c --- 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);