diff --git a/modules/video_coding/codecs/vp9/vp9_impl.cc b/modules/video_coding/codecs/vp9/vp9_impl.cc index 3b928f147a..99d1abe2b8 100644 --- a/modules/video_coding/codecs/vp9/vp9_impl.cc +++ b/modules/video_coding/codecs/vp9/vp9_impl.cc @@ -1764,6 +1764,11 @@ int VP9DecoderImpl::ReturnFrame( // frame buffer is through a callback function. This is where we // should release |img_buffer|. rtc::KeepRefUntilDone(img_buffer)); + } else { + RTC_LOG(LS_ERROR) + << "Unsupported pixel format produced by the decoder: " + << static_cast(img->fmt); + return WEBRTC_VIDEO_CODEC_NO_OUTPUT; } break; case 10: