From 8a67606c20958fa21db0b5ba9a17f379bc01786c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Apr 2016 18:26:58 +0200 Subject: 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. --- video/decode/vaapi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode/vaapi.c') 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, }; -- cgit v1.2.3