summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-11 15:55:45 +0100
committerwm4 <wm4@nowhere>2017-01-11 16:34:18 +0100
commit5f449fc11f005b926b76106b3dd7fa6cdede232f (patch)
tree855c383c2f4921d778cb1f48da5a637169b777ee /video/decode/lavc.h
parentfee5ceccad7d021503b278a7b5dd596efa030ba1 (diff)
downloadmpv-5f449fc11f005b926b76106b3dd7fa6cdede232f.tar.bz2
mpv-5f449fc11f005b926b76106b3dd7fa6cdede232f.tar.xz
video: share hwdec extra surface count between backends
It's a quite important and fragile magic number.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index a28aa0385b..c39a06b624 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -11,6 +11,13 @@
#define HWDEC_DELAY_QUEUE_COUNT 2
+// Maximum number of surfaces the player wants to buffer.
+// This number might require adjustment depending on whatever the player does;
+// for example, if vo_opengl increases the number of reference surfaces for
+// interpolation, this value has to be increased too.
+// This value does not yet include HWDEC_DELAY_QUEUE_COUNT.
+#define HWDEC_EXTRA_SURFACES 4
+
typedef struct lavc_ctx {
struct mp_log *log;
struct MPOpts *opts;