From 5f2fc41fb50c495db989178f3b289d5b0114a842 Mon Sep 17 00:00:00 2001 From: Ilya Nikolaevskiy Date: Tue, 22 Oct 2019 10:45:59 +0200 Subject: [PATCH] VP9 decoder: replace DCHECK with error message Bug: chromium:1016160 Change-Id: I0ef0db2b254829e7c0dff24b7a8da3a4056547ac Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157890 Reviewed-by: Niels Moller Commit-Queue: Ilya Nikolaevskiy Cr-Commit-Position: refs/heads/master@{#29567} --- modules/video_coding/codecs/vp9/vp9_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/video_coding/codecs/vp9/vp9_impl.cc b/modules/video_coding/codecs/vp9/vp9_impl.cc index 74d8e894d7..b926fe3040 100644 --- a/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -1746,7 +1746,8 @@ int VP9DecoderImpl::ReturnFrame( img->stride[VPX_PLANE_V] / 2, rtc::KeepRefUntilDone(img_buffer)); break; default: - RTC_NOTREACHED(); + RTC_LOG(LS_ERROR) << "Unsupported bit depth produced by the decoder: " + << img->bit_depth; return WEBRTC_VIDEO_CODEC_NO_OUTPUT; }