static int find_optimal_param(uint32_t sum, int n)

{

    int k;

    uint32_t sum2;



    if (sum <= n >> 1)

        return 0;

    sum2 = sum - (n >> 1);

    k    = av_log2(n < 256 ? FASTDIV(sum2, n) : sum2 / n);

    return FFMIN(k, MAX_RICE_PARAM);

}

static int find_optimal_param(uint32_t sum, int n)

{

    int k;

    uint32_t sum2;



    if (sum <= n >> 1)

        return 0;

    sum2 = sum - (n >> 1);

    k    = av_log2(n < 256 ? FASTDIV(sum2, n) : sum2 / n);

    return FFMIN(k, MAX_RICE_PARAM);

}

static int find_optimal_param(uint32_t sum, int n)     uint32_t sum2;     k    = av_log2(n < 256 ? FASTDIV(sum2, n) : sum2 / n);
static int FUNC_0(uint32_t VAR_0, int VAR_1)

{

    int VAR_2;

    uint32_t sum2;



    if (VAR_0 <= VAR_1 >> 1)

        return 0;

    sum2 = VAR_0 - (VAR_1 >> 1);

    VAR_2    = av_log2(VAR_1 < 256 ? FASTDIV(sum2, VAR_1) : sum2 / VAR_1);

    return FFMIN(VAR_2, MAX_RICE_PARAM);

}

static int FUNC_0(uint32_t VAR_0, int VAR_1)
{ int VAR_2; uint32_t sum2; if (VAR_0 <= VAR_1 >> 1)
return 0; sum2 = VAR_0 - (VAR_1 >> 1); VAR_2    = av_log2(VAR_1 < 256 ? FASTDIV(sum2, VAR_1) : sum2 / VAR_1); return FFMIN(VAR_2, MAX_RICE_PARAM); }