• George Boyle's avatar
    avcodec/flacenc: Fix Invalid Rice order · 2469ed32
    George Boyle authored
    Fixes ticket #4628.
    
    The problem arose, in the sample file at least, in the last block where the
    minimum and maximum Rice partition orders were both 0. In that case, and any
    other where pmax == pmin, the original UINT32_MAX placeholder value for
    bits[opt_porder] was getting overwritten before the comparison to check if the
    current partition order is a new optimal, so the correct partition order and
    RiceContext params were not being set.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    2469ed32
flacenc.c 48.2 KB