Fix klocwork issue in the LibMIX parser

BZ: 170004

Check the index range of p_dpb->fs_dpb_idc to prevent the
buffer overflow.

Change-Id: Ie3b22365a23a1a0673f1df4d5d023058a5089fda
Signed-off-by: wfeng6 <wei.feng@intel.com>
diff --git a/mixvbp/vbp_plugin/h264/h264parse_dpb.c b/mixvbp/vbp_plugin/h264/h264parse_dpb.c
index 883057a..f193d0f 100644
--- a/mixvbp/vbp_plugin/h264/h264parse_dpb.c
+++ b/mixvbp/vbp_plugin/h264/h264parse_dpb.c
@@ -3106,6 +3106,12 @@
     h264_dpb_set_active_fs(p_dpb, p_dpb->fs_dpb_idc[0]);
     poc_int = p_dpb->active_fs->frame.poc;
 
+    uint8_t used_size = (uint8_t)(sizeof(p_dpb->fs_dpb_idc)/sizeof(p_dpb->fs_dpb_idc[0]));
+    if (p_dpb->used_size >= used_size) {
+        WTRACE("DPB overflow: p_dpb->used_size = %d", p_dpb->used_size);
+        return;
+    }
+
     for (idx = 0; idx < p_dpb->used_size; idx++)
     {
         h264_dpb_set_active_fs(p_dpb, p_dpb->fs_dpb_idc[idx]);