Contrib: use a simpler way to discriminate between libav and FFmpeg