summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 17:27:46 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 17:27:46 +0000
commit3afc6449c124b38fe6753c9b67ea68bea4303e90 (patch)
treea8c56373f50697f1f2be264bf5b083513b56814d /libmpcodecs
parent6012176aeea14e0bc573d7deb967c63122b6f784 (diff)
downloadmpv-3afc6449c124b38fe6753c9b67ea68bea4303e90.tar.bz2
mpv-3afc6449c124b38fe6753c9b67ea68bea4303e90.tar.xz
10l, hopefully fixed query format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5280 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_zlib.c3
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);