• Stefano Sabatini's avatar
    ffmpeg: fix aspect ratio setting · d1eb50bb
    Stefano Sabatini authored
    This is done by adding a setsar filter at the beginning of the
    configured filterchain.
    
    This implementation is more robust, since does not modify the
    filterchain description (which was creating potential syntax errors),
    but directly modifies the filterchain structure.
    
    This also changes the ffmpeg -aspect behavior, as following filters in
    the filterchain can change the DAR/SAR set by the inserted setsar
    filter.
    Signed-off-by: 's avatarStefano Sabatini <stefano.sabatini-lala@poste.it>
    d1eb50bb
ffmpeg.c 163 KB