~guidocella/mpv-image-config

1444d00f2b8ff08668752b7cbb746e8e2bf08e7a — Guido Cella 1 year, 1 month ago d991188
align the first image with --video-unscaled

Even when the script-opt align_images-first_unscaled is false.
1 files changed, 3 insertions(+), 3 deletions(-)

M scripts/align-images.lua
M scripts/align-images.lua => scripts/align-images.lua +3 -3
@@ 22,9 22,9 @@ mp.observe_property('video-out-params', 'native', function (_, params)

    if is_first then
        is_first = false
        if not options.first_unscaled then return end

        if not mp.get_property_bool('video-unscaled') and (params.dw > dims.w or params.dh > dims.h) and mp.get_property_native('image-display-duration') == math.huge then
        if options.first_unscaled and not mp.get_property_bool('video-unscaled')
           and (params.dw > dims.w or params.dh > dims.h)
           and mp.get_property_native('image-display-duration') == math.huge then
            mp.set_property('video-unscaled', 'yes')

            -- dims = mp.get_property_native('osd-dimensions')