diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 2e7d84e55b..6dda6302f3 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -819,6 +819,9 @@ static int init_generic_hwaccel(struct dec_video *vd) } } + if (hwdec->image_format == IMGFMT_VIDEOTOOLBOX) + av_sw_format = imgfmt2pixfmt(vd->opts->videotoolbox_format); + if (av_sw_format == AV_PIX_FMT_NONE) { MP_VERBOSE(ctx, "Unsupported hw decoding format: %s\n", mp_imgfmt_to_name(pixfmt2imgfmt(ctx->avctx->sw_pix_fmt))); |