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:
@ -48,7 +48,7 @@ extern bool IsH264CodecSupportedObjC();
|
|||||||
|
|
||||||
// If any H.264 codec is supported (iOS HW or OpenH264/FFmpeg).
|
// If any H.264 codec is supported (iOS HW or OpenH264/FFmpeg).
|
||||||
bool IsH264CodecSupported() {
|
bool IsH264CodecSupported() {
|
||||||
#if defined(WEBRTC_IOS)
|
#if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED)
|
||||||
if (IsH264CodecSupportedObjC()) {
|
if (IsH264CodecSupportedObjC()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user