static int encode_frame(FlacEncodeContext *s)

{

    int ch, count;



    count = count_frame_header(s);



    for (ch = 0; ch < s->channels; ch++)

        count += encode_residual_ch(s, ch);



    count += (8 - (count & 7)) & 7; // byte alignment

    count += 16;                    // CRC-16



    return count >> 3;

}

static int encode_frame(FlacEncodeContext *s)

{

    int ch, count;



    count = count_frame_header(s);



    for (ch = 0; ch < s->channels; ch++)

        count += encode_residual_ch(s, ch);



    count += (8 - (count & 7)) & 7; 

    count += 16;                    



    return count >> 3;

}

    int ch, count;     return count >> 3;
static int FUNC_0(FlacEncodeContext *VAR_0)

{

    int VAR_1, VAR_2;



    VAR_2 = count_frame_header(VAR_0);



    for (VAR_1 = 0; VAR_1 < VAR_0->channels; VAR_1++)

        VAR_2 += encode_residual_ch(VAR_0, VAR_1);



    VAR_2 += (8 - (VAR_2 & 7)) & 7; 

    VAR_2 += 16;                    



    return VAR_2 >> 3;

}

static int FUNC_0(FlacEncodeContext *VAR_0)
{ int VAR_1, VAR_2; VAR_2 = count_frame_header(VAR_0); for (VAR_1 = 0; VAR_1 < VAR_0->channels; VAR_1++) VAR_2 += encode_residual_ch(VAR_0, VAR_1); VAR_2 += (8 - (VAR_2 & 7)) & 7; VAR_2 += 16; return VAR_2 >> 3; }