summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElaine Wang <elaine.wang@intel.com>2014-04-08 23:33:59 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:06:36 -0700
commit2672f866bdc3565173e11f598d7f3b95ff1dcb0b (patch)
treea1fb6d64bf8dfcccc13ba18e7991b71c47870771
parent80512b077abec95c25376542d58e1ee4cb1a34ee (diff)
downloadandroid_hardware_intel_img_psb_video-2672f866bdc3565173e11f598d7f3b95ff1dcb0b.tar.gz
android_hardware_intel_img_psb_video-2672f866bdc3565173e11f598d7f3b95ff1dcb0b.tar.bz2
android_hardware_intel_img_psb_video-2672f866bdc3565173e11f598d7f3b95ff1dcb0b.zip
Fix one NPD.FUNC.MIGHT klocwork issue
BZ: 185211 Check pointer colocated_target_buffer before use it. Change-Id: I8897f57bbf8c5abaabd968c54ffdaf80befae544 Signed-off-by: Elaine Wang <elaine.wang@intel.com>
-rw-r--r--src/pnw_H264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pnw_H264.c b/src/pnw_H264.c
index f012659..6acc4ad 100644
--- a/src/pnw_H264.c
+++ b/src/pnw_H264.c
@@ -1712,6 +1712,7 @@ static VAStatus pnw_H264_EndPicture(
uint32_t ext_stride_a = 0;
drv_debug_msg(VIDEO_DEBUG_GENERAL, "pnw_H264_EndPicture got two pass mode frame\n");
+ CHECK_BUFFER(colocated_target_buffer);
if (CONTEXT_ROTATE(ctx->obj_context)) {
ASSERT(rotate_surface);
REGIO_WRITE_FIELD_LITE(rotation_flags, MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION , ALT_PICTURE_ENABLE, 1);