[Libva] [PATCH 7/8 965 driver] fix an issue in i965_QueryImageFormats
Xiang, Haihao
haihao.xiang at intel.com
Tue Jun 26 01:30:29 PDT 2012
On Tue, 2012-06-26 at 10:32 +0300, Zhao Halley wrote:
> ---
> src/i965_drv_video.c | 2 +-
> src/i965_drv_video.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> mode change 100644 => 100755 src/i965_drv_video.h
>
> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
> index 903b853..bbe53fe 100755
> --- a/src/i965_drv_video.c
> +++ b/src/i965_drv_video.c
> @@ -655,7 +655,7 @@ i965_QueryImageFormats(VADriverContextP ctx,
> {
> int n;
>
> - for (n = 0; i965_image_formats_map[n].va_format.fourcc != 0; n++) {
> + for (n = 0; n<sizeof(i965_image_formats_map)/sizeof(i965_image_format_map_t); n++) {
> const i965_image_format_map_t * const m = &i965_image_formats_map[n];
> if (format_list)
> format_list[n] = m->va_format;
> diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h
> old mode 100644
> new mode 100755
> index ceb693a..bebd321
> --- a/src/i965_drv_video.h
> +++ b/src/i965_drv_video.h
> @@ -43,7 +43,7 @@
> #define I965_MAX_PROFILES 11
> #define I965_MAX_ENTRYPOINTS 5
> #define I965_MAX_CONFIG_ATTRIBUTES 10
> -#define I965_MAX_IMAGE_FORMATS 3
> +#define I965_MAX_IMAGE_FORMATS 4
> #define I965_MAX_SUBPIC_FORMATS 4
> #define I965_MAX_DISPLAY_ATTRIBUTES 4
I also encountered the same issue and fixed it this morning. Please try
the latest driver.
>
More information about the Libva
mailing list