diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2015-08-03 14:32:34 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-09-06 12:30:42 +0800 |
commit | 1c5a8431e581eb26240c765d28f89e06138ca879 (patch) | |
tree | cfa12a55c01e4e4d916689cca4a58dff73242b41 /src/gen9_mfc_hevc.c | |
parent | c1f6411d3e0337226e157a51f8aab6a9c4e8b434 (diff) |
encode/hevc: Check the correct BO before unreferencing it
v2: Change the log message per Emil's suggestion
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen9_mfc_hevc.c')
-rw-r--r-- | src/gen9_mfc_hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen9_mfc_hevc.c b/src/gen9_mfc_hevc.c index e52e408..2d94768 100644 --- a/src/gen9_mfc_hevc.c +++ b/src/gen9_mfc_hevc.c @@ -2529,7 +2529,7 @@ gen9_hcpe_context_destroy(void *context) /* mv temporal buffer */ for (i = 0; i < NUM_HCP_CURRENT_COLLOCATED_MV_TEMPORAL_BUFFERS; i++) { - if (hcpe_context->reference_surfaces[i].bo != NULL) + if (hcpe_context->current_collocated_mv_temporal_buffer[i].bo != NULL) dri_bo_unreference(hcpe_context->current_collocated_mv_temporal_buffer[i].bo); hcpe_context->current_collocated_mv_temporal_buffer[i].bo = NULL; } |