From ff17760c0009dc02458e5a4c6fc114d3b5d3408d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 2 Nov 2017 15:53:22 +0100 Subject: vd_lavc: restore --hwdec-image-format and d3d11 opaque mode When the ifdeffery for the frame_params API was added, the new code accidentally didn't include this. --- video/decode/vd_lavc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index c455dbdab6..2e144ac409 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -725,6 +725,8 @@ static int init_generic_hwaccel(struct dec_video *vd, enum AVPixelFormat hw_fmt) if (hwdec->image_format == IMGFMT_VIDEOTOOLBOX) new_fctx->sw_format = imgfmt2pixfmt(vd->opts->videotoolbox_format); + if (vd->opts->hwdec_image_format) + new_fctx->sw_format = imgfmt2pixfmt(vd->opts->hwdec_image_format); // The video output might not support all formats. // Note that supported_formats==NULL means any are accepted. -- cgit v1.2.3