video_coding: vp8: Updating error propagation threshold

Review URL: http://webrtc-codereview.appspot.com/246002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@788 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org 2011-10-20 18:19:18 +00:00
parent 11330b003e
commit 1af915d8ae

View File

@ -28,7 +28,7 @@
#include "module_common_types.h"
enum { kVp8ErrorPropagationTh = 60 };
enum { kVp8ErrorPropagationTh = 30 };
//#define DEV_PIC_LOSS
namespace webrtc
@ -846,6 +846,9 @@ VP8Decoder::Decode(const EncodedImage& inputImage,
}
if (inputImage._buffer == NULL && inputImage._length > 0)
{
// Reset to avoid requesting key frames too often.
if (_propagationCnt > 0)
_propagationCnt = 0;
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
}