Fix encoder/decoder typo in android media_codec_util.cc
Make MediaCodecUtil::IsHEVCDecoderAvailable call IsDecoderSupportedByDevice instead of IsEncoderSupportedByDevice. It looks like a typo, and isn't harmless: it can cause content shell to stall at startup if built with enable_hevc_demuxing=true when the renderer tries to query the encoder. Apparently it's a case of doing something in the renderer that's not allowed, as explained in https://chromium-review.googlesource.com/c/chromium/src/+/1694241 (which happened to add this encoder/decoder typo). BUG=980091, 980682 TEST=build with enable_hevc_demuxing=true, run content shell apk R=chcunningham Change-Id: Iaadc73e6dd4301b6e300891cbb0baf7afe8f5e63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730163Reviewed-by:Chrome Cunningham <chcunningham@chromium.org> Commit-Queue: Chrome Cunningham <chcunningham@chromium.org> Cr-Commit-Position: refs/heads/master@{#684091}
Showing
Please register or sign in to comment