[Libva] [libva-intel-driver][PATCH] encode/hevc: Fix condition in if ()

Xiang, Haihao haihao.xiang at intel.com
Sun Aug 2 23:32:34 PDT 2015


Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
 src/gen9_mfc_hevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
     }
-- 
1.9.1



More information about the Libva mailing list