diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2011-05-19 18:36:19 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:05:54 -0700 |
commit | 65174cf623a03bf5ce819778f8bca002674c2e7e (patch) | |
tree | 0bc1704d876f611dce14a6a10aa4892e6a1cf970 /src/pnw_H264.c | |
parent | 54752e65b02b1a84c491e3f9c964046faeea306e (diff) | |
download | android_hardware_intel_img_psb_video-65174cf623a03bf5ce819778f8bca002674c2e7e.tar.gz android_hardware_intel_img_psb_video-65174cf623a03bf5ce819778f8bca002674c2e7e.tar.bz2 android_hardware_intel_img_psb_video-65174cf623a03bf5ce819778f8bca002674c2e7e.zip |
Video: fix some random uninitialized data which will capture hang
BZ: 2351, 1119
HDMI resource are local variables and not fully initialized, by
move it to driver private data to fix video capture random data
corruption issue, which will cause video caputre hang issue
Change-Id: I99437e72155ecf55ff218d80c7f6c586b70cdd7b
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'src/pnw_H264.c')
-rw-r--r-- | src/pnw_H264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pnw_H264.c b/src/pnw_H264.c index 2a0f2bd..b5f855b 100644 --- a/src/pnw_H264.c +++ b/src/pnw_H264.c @@ -1128,8 +1128,8 @@ static void psb__H264_build_rendec_params(context_H264_p ctx, VASliceParameterBu if (slice_param->slice_type == ST_B || slice_param->slice_type == ST_P) { psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_VEC, H264_CR_VEC_H264_BE_LIST0)); - if (slice_param->num_ref_idx_l0_active_minus1 > (32 - 4)) { - psb__error_message("num_ref_idx_l0_active_minus1(%d) is too big. Set it with 28\n", + if (slice_param->num_ref_idx_l0_active_minus1 > 31) { + psb__error_message("num_ref_idx_l0_active_minus1(%d) is too big, limit it to 31.\n", slice_param->num_ref_idx_l0_active_minus1); slice_param->num_ref_idx_l0_active_minus1 = 28; } |