static inline int round_sample(int64_t *sum)

{

    int sum1;

    sum1 = (int)((*sum) >> OUT_SHIFT);

    *sum &= (1<<OUT_SHIFT)-1;

    return av_clip(sum1, OUT_MIN, OUT_MAX);

}

static inline int round_sample(int64_t *sum)

{

    int sum1;

    sum1 = (int)((*sum) >> OUT_SHIFT);

    *sum &= (1<<OUT_SHIFT)-1;

    return av_clip(sum1, OUT_MIN, OUT_MAX);

}

static inline int FUNC_0(int64_t *VAR_0)

{

    int VAR_1;

    VAR_1 = (int)((*VAR_0) >> OUT_SHIFT);

    *VAR_0 &= (1<<OUT_SHIFT)-1;

    return av_clip(VAR_1, OUT_MIN, OUT_MAX);

}

static inline int FUNC_0(int64_t *VAR_0)
{ int VAR_1; VAR_1 = (int)((*VAR_0) >> OUT_SHIFT); *VAR_0 &= (1<<OUT_SHIFT)-1; return av_clip(VAR_1, OUT_MIN, OUT_MAX); }