From 98028bb0671e315a61bd83697148a4d19c98b82a Mon Sep 17 00:00:00 2001 From: Jianjun Zhu Date: Thu, 1 Jun 2023 15:15:15 +0800 Subject: [PATCH] H.264 is not supported for receive streams if FFMPEG is not linked. --- modules/video_coding/codecs/h264/h264.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_coding/codecs/h264/h264.cc b/modules/video_coding/codecs/h264/h264.cc index 9a885284ab6..6c2198d12bb 100644 --- a/modules/video_coding/codecs/h264/h264.cc +++ b/modules/video_coding/codecs/h264/h264.cc @@ -108,6 +108,11 @@ std::vector SupportedH264Codecs(bool add_scalability_modes) { std::vector SupportedH264DecoderCodecs() { TRACE_EVENT0("webrtc", __func__); + +#ifndef OWT_USE_FFMPEG + return std::vector(); +#endif + if (!IsH264CodecSupported()) return std::vector();