vdpau: common support for managing the VdpDecoder in avcodec