diff --git a/libmpcodecs/vd_mpng.c b/libmpcodecs/vd_mpng.c index da6a8bca68..f64a96ca7d 100644 --- a/libmpcodecs/vd_mpng.c +++ b/libmpcodecs/vd_mpng.c @@ -32,6 +32,12 @@ static int last_c=-1; // to set/get/query special features/parameters static int control(sh_video_t *sh,int cmd,void* arg,...){ + switch (cmd) + { + case VDCTRL_QUERY_FORMAT: + if (*((int *) arg) == out_fmt) return CONTROL_TRUE; + return CONTROL_FALSE; + } return CONTROL_UNKNOWN; }