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
This commit is contained in:
marpan@google.com 2011-08-05 21:20:29 +00:00
parent 79835d1bd3
commit 7bb8a9444d

View File

@ -714,6 +714,16 @@ VP8Decoder::Decode(const EncodedImage& inputImage,
{ {
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; 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_dec_iter_t _iter = NULL;
vpx_image_t* img; vpx_image_t* img;