OSDN Git Service

Set pipe_buffer_state before ind_obj_base_addr for VP9 decoder
authorpeng.chen <peng.c.chen@intel.com>
Wed, 6 Sep 2017 03:15:45 +0000 (11:15 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 12 Sep 2017 05:43:57 +0000 (13:43 +0800)
it fixed a potential VP9 decoding issue at some cases

Signed-off-by: peng.chen <peng.c.chen@intel.com>
src/gen9_mfd.c

index 10171de..2490b21 100644 (file)
@@ -1734,9 +1734,9 @@ gen9_hcpd_vp9_decode_picture(VADriverContextP ctx,
     //Only one VASliceParameterBufferVP9 should be sent per frame
     slice_data_bo = decode_state->slice_datas[0]->bo;
 
+    gen9_hcpd_vp9_pipe_buf_addr_state(ctx, decode_state, gen9_hcpd_context);
     gen9_hcpd_ind_obj_base_addr_state(ctx, slice_data_bo, gen9_hcpd_context);
 
-    gen9_hcpd_vp9_pipe_buf_addr_state(ctx, decode_state, gen9_hcpd_context);
     //If segmentation is disabled, only SegParam[0] is valid,
     //all others should be populated with 0
     if (!pic_param->pic_fields.bits.segmentation_enabled)