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