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:
parent
11330b003e
commit
1af915d8ae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user