f_decoder_wrapper: warn when using video-aspect-override of 0 or -1

This commit is contained in:
nanahi
2025-02-18 10:36:41 -05:00
committed by Dudemanguy
parent ccaa0e3d56
commit 66a7338027
2 changed files with 8 additions and 0 deletions

View File

@@ -554,6 +554,13 @@ static void fix_image_params(struct priv *p,
MP_VERBOSE(p, "Decoder format: %s\n", mp_image_params_to_str(params));
p->dec_format = *params;
if (!quiet && opts->movie_aspect == 0)
MP_WARN(p, "Setting video-aspect-override to 0 is deprecated.\n"
"Use --video-aspect-override=no --video-aspect-mode=ignore instead.\n");
if (!quiet && opts->movie_aspect == -1)
MP_WARN(p, "Setting video-aspect-override to -1 is deprecated.\n"
"Use --video-aspect-override=no --video-aspect-mode=container instead.\n");
// While mp_image_params normally always have to have d_w/d_h set, the
// decoder signals unknown bitstream aspect ratio with both set to 0.
bool use_container = true;