# HG changeset patch # User alex # Date 1070810319 0 # Node ID a9448dd2430ceede7f8df7969a4211c24fde27ff # Parent 0d24c99199e2f576becb3f37c1732f91ed104d6b query_format support by Matthias Goerner diff -r 0d24c99199e2 -r a9448dd2430c libmpcodecs/vd_mpng.c --- a/libmpcodecs/vd_mpng.c Sun Dec 07 15:08:20 2003 +0000 +++ b/libmpcodecs/vd_mpng.c Sun Dec 07 15:18:39 2003 +0000 @@ -32,6 +32,12 @@ // 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; }