From 7bb8a9444d47675758cd9cd45e47558f2299d0d8 Mon Sep 17 00:00:00 2001 From: "marpan@google.com" Date: Fri, 5 Aug 2011 21:20:29 +0000 Subject: [PATCH] Change to r315: code to return error for incomplete frames (for _feedbackMode off) is commented out. Review URL: http://webrtc-codereview.appspot.com/91016 git-svn-id: http://webrtc.googlecode.com/svn/trunk@316 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/video_coding/codecs/vp8/main/source/vp8.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 0d0c7fc41..096fac7cc 100644 --- a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc +++ b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc @@ -714,6 +714,16 @@ VP8Decoder::Decode(const EncodedImage& inputImage, { return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; } + if (inputImage._completeFrame == false) + { + // future improvement + // we can't decode this frame + if (_feedbackModeOn) + { + return WEBRTC_VIDEO_CODEC_ERR_REQUEST_SLI; + } + // otherwise allow for incomplete frames to be decoded. + } vpx_dec_iter_t _iter = NULL; vpx_image_t* img;