diff options
author | wm4 <wm4@nowhere> | 2016-04-07 18:26:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-07 18:47:32 +0200 |
commit | 8a67606c20958fa21db0b5ba9a17f379bc01786c (patch) | |
tree | bd571e5bad63320ae7aaa25ba23309ac2dc2957b /video/decode/vaapi.c | |
parent | f009d16f362694b6f49571b76f8b0331966824b5 (diff) | |
download | mpv-8a67606c20958fa21db0b5ba9a17f379bc01786c.tar.bz2 mpv-8a67606c20958fa21db0b5ba9a17f379bc01786c.tar.xz |
vd_lavc: let hardware decoder request delaying frames explicitly
Until now, the presence of the process_image() callback was used to set
a delay queue with a hardcoded size. Change this to a vd_lavc_hwdec
field instead, so the decoder can explicitly set this if it's really
needed.
Do this so process_image() can be used in the VideoToolbox glue code for
something entirely unrelated.
Diffstat (limited to 'video/decode/vaapi.c')
-rw-r--r-- | video/decode/vaapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/vaapi.c b/video/decode/vaapi.c index 97fe59c889..2682225876 100644 --- a/video/decode/vaapi.c +++ b/video/decode/vaapi.c @@ -508,4 +508,5 @@ const struct vd_lavc_hwdec mp_vd_lavc_vaapi_copy = { .init_decoder = init_decoder, .allocate_image = allocate_image, .process_image = copy_image, + .delay_queue = HWDEC_DELAY_QUEUE_COUNT, }; |