static int get_audio_frame_size(AVCodecContext *enc, int size)

{

    int frame_size;



    if(enc->codec_id == CODEC_ID_VORBIS)

        return -1;



    if (enc->frame_size <= 1) {

        int bits_per_sample = av_get_bits_per_sample(enc->codec_id);



        if (bits_per_sample) {

            if (enc->channels == 0)

                return -1;

            frame_size = (size << 3) / (bits_per_sample * enc->channels);

        } else {

            /* used for example by ADPCM codecs */

            if (enc->bit_rate == 0)

                return -1;

            frame_size = (size * 8 * enc->sample_rate) / enc->bit_rate;

        }

    } else {

        frame_size = enc->frame_size;

    }

    return frame_size;

}

static int get_audio_frame_size(AVCodecContext *enc, int size)

{

    int frame_size;



    if(enc->codec_id == CODEC_ID_VORBIS)

        return -1;



    if (enc->frame_size <= 1) {

        int bits_per_sample = av_get_bits_per_sample(enc->codec_id);



        if (bits_per_sample) {

            if (enc->channels == 0)

                return -1;

            frame_size = (size << 3) / (bits_per_sample * enc->channels);

        } else {

            

            if (enc->bit_rate == 0)

                return -1;

            frame_size = (size * 8 * enc->sample_rate) / enc->bit_rate;

        }

    } else {

        frame_size = enc->frame_size;

    }

    return frame_size;

}

            frame_size = (size * 8 * enc->sample_rate) / enc->bit_rate;
static int FUNC_0(AVCodecContext *VAR_0, int VAR_1)

{

    int VAR_2;



    if(VAR_0->codec_id == CODEC_ID_VORBIS)

        return -1;



    if (VAR_0->VAR_2 <= 1) {

        int VAR_3 = av_get_bits_per_sample(VAR_0->codec_id);



        if (VAR_3) {

            if (VAR_0->channels == 0)

                return -1;

            VAR_2 = (VAR_1 << 3) / (VAR_3 * VAR_0->channels);

        } else {

            

            if (VAR_0->bit_rate == 0)

                return -1;

            VAR_2 = (VAR_1 * 8 * VAR_0->sample_rate) / VAR_0->bit_rate;

        }

    } else {

        VAR_2 = VAR_0->VAR_2;

    }

    return VAR_2;

}

static int FUNC_0(AVCodecContext *VAR_0, int VAR_1)
{ int VAR_2; if(VAR_0->codec_id == CODEC_ID_VORBIS)
return -1; if (VAR_0->VAR_2 <= 1) { int VAR_3 = av_get_bits_per_sample(VAR_0->codec_id); if (VAR_3) { if (VAR_0->channels == 0)
return -1; VAR_2 = (VAR_1 << 3) / (VAR_3 * VAR_0->channels); } else { if (VAR_0->bit_rate == 0)
return -1; VAR_2 = (VAR_1 * 8 * VAR_0->sample_rate) / VAR_0->bit_rate; } } else { VAR_2 = VAR_0->VAR_2; } return VAR_2; }