[Libva] [LIBVA-INTEL-DRIVER][PATCH 10/12] Release the corresponding buffers for VP9 encoding
Zhao Yakui
yakui.zhao at intel.com
Tue May 24 12:00:36 UTC 2016
Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley at intel.com>
---
src/i965_drv_video.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 186443b..77fe9c7 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -2833,6 +2833,13 @@ i965_BeginPicture(VADriverContextP ctx,
obj_context->codec_state.encode.slice_index = 0;
obj_context->codec_state.encode.vps_sps_seq_index = 0;
i965_release_buffer_store(&obj_context->codec_state.encode.encmb_map);
+
+ if (obj_config->profile == VAProfileVP9Profile0) {
+ for (i = 0; i < ARRAY_ELEMS(obj_context->codec_state.encode.misc_param); i++)
+ i965_release_buffer_store(&obj_context->codec_state.encode.misc_param[i]);
+
+ i965_release_buffer_store(&obj_context->codec_state.encode.seq_param_ext);
+ }
} else {
obj_context->codec_state.decode.current_render_target = render_target;
i965_release_buffer_store(&obj_context->codec_state.decode.pic_param);
--
1.8.2.1
More information about the Libva
mailing list