Fix playback with exotic decoders.

Allow overriding of flags, and extend VAAPI hack to additional formats.