DVP_FLAG* are flags set on pictures output. Not a flag you give to the decoder. If SetCodecControl can take flags, they should be in separate "namespace" like DVD_CODEC_CONTROL_DRAIN or similar.