screenshot: explicitly default VOCTRL_SCREENSHOT csp

This allows the logic in `convert_image` to fast-path if the image
params are equal. Without this check, the image params are basically
never equal, because that path goes through `mp_image_params_guess_csp`
while the `mp_image` itself does not.

Force it here for consistency across VOs.
This commit is contained in:
Niklas Haas 2022-12-12 22:17:19 +01:00 committed by Niklas Haas
parent 6d9e72cd89
commit ff26024496
1 changed files with 1 additions and 0 deletions

View File

@ -369,6 +369,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode,
if (image && need_add_subs)
add_subs(mpctx, image);
mp_image_params_guess_csp(&image->params);
return image;
}