Index: webrtc/modules/video_coding/codecs/h264/h264.cc |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264.cc b/webrtc/modules/video_coding/codecs/h264/h264.cc |
index 9fdc4d4623c232b859e8de1f214ced85c5894803..1c0fc705ae4d55b05dd61bf3e195032af86771c6 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264.cc |
+++ b/webrtc/modules/video_coding/codecs/h264/h264.cc |
@@ -48,7 +48,7 @@ extern bool IsH264CodecSupportedObjC(); |
// If any H.264 codec is supported (iOS HW or OpenH264/FFmpeg). |
bool IsH264CodecSupported() { |
-#if defined(WEBRTC_IOS) |
+#if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
if (IsH264CodecSupportedObjC()) { |
return true; |
} |