Updated #if in IsH264CodecSupported to match H264[En/De]coder::Create.

This will hopefully resolve a crash that might occur if it thinks H264 is
supported when in fact it isn't.

BUG=chromium:615513

Review-Url: https://codereview.webrtc.org/2018273002
Cr-Commit-Position: refs/heads/master@{#12958}
This commit is contained in:
hbos
2016-05-30 05:15:25 -07:00
committed by Commit bot
parent e38a93663a
commit 073eb7ed1e

View File

@ -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;
}