again
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vlc?expand=0&rev=23
This commit is contained in:
parent
5b2b48c004
commit
3a63c24041
@ -10,12 +10,20 @@ Index: vlc-2.0.7/modules/codec/avcodec/vaapi.c
|
||||
===================================================================
|
||||
--- vlc-2.0.7.orig/modules/codec/avcodec/vaapi.c
|
||||
+++ vlc-2.0.7/modules/codec/avcodec/vaapi.c
|
||||
@@ -246,8 +246,14 @@ static int CreateSurfaces( vlc_va_vaapi_
|
||||
@@ -46,6 +46,7 @@
|
||||
#include <libavcodec/vaapi.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
+#include <va/va_version.h>
|
||||
#include <va/va_x11.h>
|
||||
|
||||
typedef struct
|
||||
@@ -246,8 +247,14 @@ static int CreateSurfaces( vlc_va_vaapi_
|
||||
|
||||
/* Create surfaces */
|
||||
VASurfaceID pi_surface_id[p_va->i_surface_count];
|
||||
+/* vaCreateSurfaces API changed with version 1.2.0 */
|
||||
+#if VA_CHECK_VERSION(1,2,0)
|
||||
+#if VA_CHECK_VERSION( 0, 34, 0 )
|
||||
+ if( vaCreateSurfaces( p_va->p_display, VA_RT_FORMAT_YUV420, i_width, i_height,
|
||||
+ pi_surface_id, p_va->i_surface_count, NULL, 0 ) )
|
||||
+#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user