Fixes an assert triggered in jitter_buffer_test and disables deblocking.

When deblocking is enabled the first frames can include uninitialized
memory. Disabling for now.

BUG=
TEST=

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1181 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2011-12-14 09:39:30 +00:00
parent 7991c0501f
commit 0c40d3315f
2 changed files with 4 additions and 3 deletions

View File

@ -724,10 +724,12 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
}
#if WEBRTC_LIBVPX_VERSION >= 971
vp8_postproc_cfg_t ppcfg;
ppcfg.post_proc_flag = VP8_DEBLOCK;
// Disable deblocking for now due to uninitialized memory being returned.
ppcfg.post_proc_flag = 0;
// Strength of deblocking filter. Valid range:[0,16]
ppcfg.deblocking_level = 3;
//ppcfg.deblocking_level = 3;
vpx_codec_control(_decoder, VP8_SET_POSTPROC, &ppcfg);
#endif

View File

@ -637,7 +637,6 @@ int VCMSessionInfo::PrepareForDecode(uint8_t* frame_buffer) {
if (real_data_bytes == 0) {
// Drop the frame since all it contains are zeros.
length = 0;
packets_.clear();
}
return length;
}