summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-26 14:05:54 +0100
committerwm4 <wm4@nowhere>2016-01-26 14:05:54 +0100
commit475d346174bb8336226d6a618261b61ee0692f71 (patch)
treef293cb9871ea0d0c3832fce6831efdf653bcd203 /video/decode
parent6462eabff36e458caf6b0ebf762f72788226915d (diff)
downloadmpv-475d346174bb8336226d6a618261b61ee0692f71.tar.bz2
mpv-475d346174bb8336226d6a618261b61ee0692f71.tar.xz
vaapi: lower number of allocated surfaces again
Commit b53cb8de increased this by the number of additionally delayed surfaces. But since this is only enabled in copy-back mode (which is what process_image is about), the other additional surfaces accounted for the direct rendering case can be ignored.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vaapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c
index 4b8987cf24..d7aa2694aa 100644
--- a/video/decode/vaapi.c
+++ b/video/decode/vaapi.c
@@ -44,7 +44,7 @@
* Note that redundant additional surfaces also might allow for some
* buffering (i.e. not trying to reuse a surface while it's busy).
*/
-#define ADDTIONAL_SURFACES (6 + HWDEC_DELAY_QUEUE_COUNT)
+#define ADDTIONAL_SURFACES MPMAX(6, HWDEC_DELAY_QUEUE_COUNT)
// Some upper bound.
#define MAX_SURFACES 25