Revert 4597 "Don't force key frame when decoding with errors"
> Don't force key frame when decoding with errors > > BUG=2241 > R=stefan@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/2036004 TBR=mikhal@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2093004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4600 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -260,19 +260,12 @@ int32_t TbI420Decoder::Decode(
|
||||
return WEBRTC_VIDEO_CODEC_UNINITIALIZED;
|
||||
}
|
||||
|
||||
// Only send complete frames.
|
||||
if (static_cast<int>(inputImage._length) !=
|
||||
webrtc::CalcBufferSize(webrtc::kI420,_width,_height)) {
|
||||
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||
}
|
||||
|
||||
int ret = ConvertToI420(webrtc::kI420, inputImage._buffer, 0, 0,
|
||||
_width, _height,
|
||||
0, webrtc::kRotateNone, &_decodedImage);
|
||||
|
||||
if (ret < 0)
|
||||
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||
|
||||
_decodedImage.set_timestamp(inputImage._timeStamp);
|
||||
|
||||
_decodeCompleteCallback->Decoded(_decodedImage);
|
||||
|
||||
Reference in New Issue
Block a user