mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Use openh264 as default codec for MacOS
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user