[Libva] [PATCH] Fix the segfault while inserting packed slice header

Zhao, Yakui yakui.zhao at intel.com
Tue May 27 17:29:59 PDT 2014


On Tue, 2014-05-27 at 05:18 -0600, sreerenj.balachandran at intel.com
wrote:
> From: Sreerenj Balachandran <sreerenj.balachandran at intel.com>

This patch looks good to me.

This will be pushed.

Thanks.
    Yakui
> 
> ---
>  src/gen6_mfc_common.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gen6_mfc_common.c b/src/gen6_mfc_common.c
> index 936b4ef..bf15865 100644
> --- a/src/gen6_mfc_common.c
> +++ b/src/gen6_mfc_common.c
> @@ -1578,10 +1578,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,




More information about the Libva mailing list