diff options
Diffstat (limited to 'libmpcodecs/vd_zlib.c')
-rw-r--r-- | libmpcodecs/vd_zlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vd_zlib.c b/libmpcodecs/vd_zlib.c index 3f99f39889..a3c4f81e01 100644 --- a/libmpcodecs/vd_zlib.c +++ b/libmpcodecs/vd_zlib.c @@ -31,11 +31,12 @@ typedef struct { // 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); |