mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
6462eabff3
commit
475d346174
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue