From f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 21 Jan 2023 15:21:49 +0100 Subject: vo: add `int flags` to the get_image signature This is a huge disgusting mess to thread through everywhere. Maybe I'm stupid for attempting to solve the problem this way. --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index f70626916e..86f872973f 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -985,7 +985,7 @@ static int get_buffer2_direct(AVCodecContext *avctx, AVFrame *pic, int flags) struct mp_image *img = mp_image_pool_get_no_alloc(p->dr_pool, imgfmt, w, h); if (!img) { MP_DBG(p, "Allocating new DR image...\n"); - img = vo_get_image(p->vo, imgfmt, w, h, stride_align); + img = vo_get_image(p->vo, imgfmt, w, h, stride_align, 0); if (!img) { MP_DBG(p, "...failed..\n"); goto fallback; -- cgit v1.2.3