[Libva] [PATCH libva-intel-driver master 2/2] Return error when trying to decoding an interlaced VC-1 video
Zhao Yakui
yakui.zhao at intel.com
Mon May 5 00:03:37 PDT 2014
On Sun, 2014-05-04 at 23:00 -0600, Xiang, Haihao wrote:
> From: "Xiang, Haihao" <haihao.xiang at intel.com>
>
> https://bugs.freedesktop.org/show_bug.cgi?id=77386
Make sense.
Reviewed-by: Zhao Yakui <yakui.zhao at intel.com>
>
> Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
> ---
> src/i965_decoder_utils.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/i965_decoder_utils.c b/src/i965_decoder_utils.c
> index 2533381..617bc15 100644
> --- a/src/i965_decoder_utils.c
> +++ b/src/i965_decoder_utils.c
> @@ -654,7 +654,12 @@ intel_decoder_check_vc1_parameter(VADriverContextP ctx,
> VAPictureParameterBufferVC1 *pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
> struct object_surface *obj_surface;
> int i = 0;
> -
> +
> + if (pic_param->sequence_fields.bits.interlace == 1 &&
> + pic_param->picture_fields.bits.frame_coding_mode != 0) { /* frame-interlace or field-interlace */
> + return VA_STATUS_ERROR_DECODING_ERROR;
> + }
> +
> if (pic_param->picture_fields.bits.picture_type == 0 ||
> pic_param->picture_fields.bits.picture_type == 3) {
> } else if (pic_param->picture_fields.bits.picture_type == 1 ||
More information about the Libva
mailing list