• Stefano Sabatini's avatar
    imgutils: generalize linesize computation for bitstream formats · 10931720
    Stefano Sabatini authored
    Make it a subcase of the general algorithm used for the non-bitstream
    case. Simplify, and make av_image_get_linesize() and
    av_image_fill_linesizes() correctly return the right value when plane
    != 0.
    
    In particular fix a crash occurring with:
    -vf format=monow,showinfo,format=monow.
    10931720
imgutils.c 8.36 KB