From 1af915d8aeba410ad13f857eb89686dd0f0686d0 Mon Sep 17 00:00:00 2001 From: "mikhal@webrtc.org" Date: Thu, 20 Oct 2011 18:19:18 +0000 Subject: [PATCH] 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 --- src/modules/video_coding/codecs/vp8/main/source/vp8.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 bfe1213370..aaa14cb237 100644 --- a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc +++ b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc @@ -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; }