From cd44f40607d6042c12577c554e09d14bb4164d80 Mon Sep 17 00:00:00 2001 From: fritsch Date: Fri, 15 Nov 2013 16:06:23 +0100 Subject: [PATCH] libva: add patch to handle empty surfaces --- .../patches/libva-patch-surface_empty.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/multimedia/libva/patches/libva-patch-surface_empty.patch diff --git a/packages/multimedia/libva/patches/libva-patch-surface_empty.patch b/packages/multimedia/libva/patches/libva-patch-surface_empty.patch new file mode 100644 index 0000000000..2b5bb590d4 --- /dev/null +++ b/packages/multimedia/libva/patches/libva-patch-surface_empty.patch @@ -0,0 +1,23 @@ +diff --git a/va/va.h b/va/va.h +index d9e4c7e..dc0f092 100644 +--- a/va/va.h ++++ b/va/va.h +@@ -1905,6 +1905,8 @@ VAStatus vaSyncSurface ( + VASurfaceID render_target + ); + ++#define HAVE_VA_SURFACE_STATUS_EMPTY 1 ++ + typedef enum + { + VASurfaceRendering = 1, /* Rendering in progress */ +@@ -1912,7 +1914,8 @@ typedef enum + /* this status is useful if surface is used as the source */ + /* of an overlay */ + VASurfaceReady = 4, /* not being rendered or displayed */ +- VASurfaceSkipped = 8 /* Indicate a skipped frame during encode */ ++ VASurfaceSkipped = 8, /* Indicate a skipped frame during encode */ ++ VASurfaceEmpty = 16 /* contains no actual data */ + } VASurfaceStatus; + + /*