Use openh264 as default codec for MacOS

This commit is contained in:
dijunkun
2023-12-01 17:15:57 +08:00
parent 052d479004
commit 13ea652278

View File

@@ -18,8 +18,8 @@ VideoDecoderFactory::~VideoDecoderFactory() {}
std::unique_ptr<VideoDecoder> VideoDecoderFactory::CreateVideoDecoder( std::unique_ptr<VideoDecoder> VideoDecoderFactory::CreateVideoDecoder(
bool hardware_acceleration) { bool hardware_acceleration) {
#if __APPLE__ #if __APPLE__
// return std::make_unique<OpenH264Decoder>(OpenH264Decoder()); return std::make_unique<OpenH264Decoder>(OpenH264Decoder());
return std::make_unique<FfmpegVideoDecoder>(FfmpegVideoDecoder()); // return std::make_unique<FfmpegVideoDecoder>(FfmpegVideoDecoder());
#else #else
if (hardware_acceleration) { if (hardware_acceleration) {
if (CheckIsHardwareAccerlerationSupported()) { if (CheckIsHardwareAccerlerationSupported()) {