diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 4 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index e0f7e2b7e8..2f26402526 100644 --- a/options/options.c +++ b/options/options.c @@ -443,8 +443,10 @@ const m_option_t mp_opts[] = { OPT_CHOICE_C("hwdec", hwdec_api, 0, mp_hwdec_names), OPT_STRING("hwdec-codecs", hwdec_codecs, 0), #if HAVE_VIDEOTOOLBOX_HWACCEL - OPT_IMAGEFORMAT("videotoolbox-format", videotoolbox_format, 0, .min = -1), + OPT_IMAGEFORMAT("videotoolbox-format", videotoolbox_format, 0, .min = -1, + .deprecation_message = "use --hwdec-image-format instead"), #endif + OPT_IMAGEFORMAT("hwdec-image-format", hwdec_image_format, 0, .min = -1), // -1 means auto aspect (prefer container size until aspect change) // 0 means square pixels diff --git a/options/options.h b/options/options.h index 3bb2a0a311..e56ed7d619 100644 --- a/options/options.h +++ b/options/options.h @@ -292,6 +292,7 @@ typedef struct MPOpts { int hwdec_api; char *hwdec_codecs; int videotoolbox_format; + int hwdec_image_format; int w32_priority; |