summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2014-05-27 05:18:05 -0600
committerXiang, Haihao <haihao.xiang@intel.com>2014-06-16 11:53:35 +0800
commit1ed9128c99723ea202ba7614ca4f9c563b7ad846 (patch)
tree937fe372ebce88e698396a001eaa3a2d7a6ba0e2
parentbb3c0d9848f757906662884755e3184a05981d0b (diff)
downloadlibva-intel-driver-1ed9128c99723ea202ba7614ca4f9c563b7ad846.tar.gz
libva-intel-driver-1ed9128c99723ea202ba7614ca4f9c563b7ad846.tar.bz2
libva-intel-driver-1ed9128c99723ea202ba7614ca4f9c563b7ad846.zip
Fix the segfault while inserting packed slice header
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com> Reviewed-by: Zhao, Yakui <yakui.zhao@intel.com> (cherry picked from commit 7c2273f1334d7d45e248d128e17200b7e8beffd1)
-rw-r--r--src/gen6_mfc_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen6_mfc_common.c b/src/gen6_mfc_common.c
index e500feb..77c46dd 100644
--- a/src/gen6_mfc_common.c
+++ b/src/gen6_mfc_common.c
@@ -1593,10 +1593,10 @@ void intel_avc_slice_insert_packed_data(VADriverContextP ctx,
} else {
unsigned int skip_emul_byte_cnt;
- header_data = (unsigned int *)encode_state->packed_header_data_ext[start_index + i]->buffer;
+ header_data = (unsigned int *)encode_state->packed_header_data_ext[slice_header_index]->buffer;
param = (VAEncPackedHeaderParameterBuffer *)
- (encode_state->packed_header_params_ext[start_index + i]->buffer);
+ (encode_state->packed_header_params_ext[slice_header_index]->buffer);
length_in_bits = param->bit_length;
/* as the slice header is the last header data for one slice,