• Jan Ekström's avatar
    avcodec/libsvtav1: use larger of bit rate and max rate for buffer size · fba9d960
    Jan Ekström authored
    Generally if maxrate is set, the calculation should be maxrate over
    bufsize. This additionally enables CRF + maxrate & bufsize usage.
    
    In order to keep negative values from enabling zero to be treated
    as larger and causing a division by zero, check that one of the
    variables is larger than zero.
    fba9d960
libsvtav1.c 22.8 KB