diff --git a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc index 1cccb2a7a2..d7721438f8 100644 --- a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc +++ b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc @@ -796,6 +796,12 @@ VP8Decoder::Decode(const EncodedImage& inputImage, img = vpx_codec_get_frame(_decoder, &_iter); + if (img == NULL) + { + // Decoder OK and NULL image => No show frame + return WEBRTC_VIDEO_CODEC_OK; + } + // Allocate memory for decoded image WebRtc_UWord32 requiredSize = (3 * img->h * img->w) >> 1; if (_decodedImage._buffer != NULL)