diff options
author | wm4 <wm4@nowhere> | 2016-01-26 14:05:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-26 14:05:54 +0100 |
commit | 475d346174bb8336226d6a618261b61ee0692f71 (patch) | |
tree | f293cb9871ea0d0c3832fce6831efdf653bcd203 /video | |
parent | 6462eabff36e458caf6b0ebf762f72788226915d (diff) | |
download | mpv-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')
-rw-r--r-- | video/decode/vaapi.c | 2 |
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 |