Enabling libvpx error concealment.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@399 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
holmer@google.com 2011-08-18 09:35:45 +00:00
parent 7ad6d1cf27
commit 2cdc7b94d2

View File

@ -658,7 +658,9 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
cfg.threads = numberOfCores;
cfg.h = cfg.w = 0; // set after decode
if (vpx_codec_dec_init(_decoder, vpx_codec_vp8_dx(), NULL, 0))
vpx_codec_flags_t flags = VPX_CODEC_USE_ERROR_CONCEALMENT;
if (vpx_codec_dec_init(_decoder, vpx_codec_vp8_dx(), NULL, flags))
{
return WEBRTC_VIDEO_CODEC_MEMORY;
}