Skip to content
  • Steve Lhomme's avatar
    video_output: reinit the vout if the crop changes · 44b083a0
    Steve Lhomme authored and Thomas Guillem's avatar Thomas Guillem committed
    
    
    If you play a file that has the same decoder size but different display size
    consecutively, the decoder picture pool needs to be updated so that the
    i_visible_lines of each picture plane matches the new picture format.
    
    The easiest way is to reinit the vout. Another way would be to update the
    pictures in each picture pool dynamically. It cannot just be handled on the
    vout side as some decoders and filters rely on i_visible/offset to copy
    only the required data (for example lavc_CopyPicture).
    
    Fixes #19268
    
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    (cherry picked from commit 17efaa77
    
    )
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    44b083a0