• flameeyes's avatar
    Invert logic for the single-pass in swScale() functions. · b1bbaa2e
    flameeyes authored
    Instead of having a firstTime variable defaulting to 1, have a
    warnedAlready defaulting to 0. While this should make no difference in
    code speed at runtime, it allows to aggregate the four bytes of that
    variable with clip_table in .bss section, rather than issuing a .data
    section just for that.
    
    As it is, libswscale require no .data section but .data.rel.ro (that
    can be mitigated by prelinking), so the change might actually save one
    page of memory at runtime (per process).
    
    
    
    git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27734 b3059339-0415-0410-9bf9-f77b7e298cf2
    b1bbaa2e
swscale_template.c 137 KB