static int has_codec_parameters(AVCodecContext *enc)

{

    int val;

    switch(enc->codec_type) {

    case CODEC_TYPE_AUDIO:

        val = enc->sample_rate;

        break;

    case CODEC_TYPE_VIDEO:

        val = enc->width && enc->pix_fmt != PIX_FMT_NONE;

        break;

    default:

        val = 1;

        break;

    }

    return (val != 0);

}

static int has_codec_parameters(AVCodecContext *enc)

{

    int val;

    switch(enc->codec_type) {

    case CODEC_TYPE_AUDIO:

        val = enc->sample_rate;

        break;

    case CODEC_TYPE_VIDEO:

        val = enc->width && enc->pix_fmt != PIX_FMT_NONE;

        break;

    default:

        val = 1;

        break;

    }

    return (val != 0);

}

static int FUNC_0(AVCodecContext *VAR_0)

{

    int VAR_1;

    switch(VAR_0->codec_type) {

    case CODEC_TYPE_AUDIO:

        VAR_1 = VAR_0->sample_rate;

        break;

    case CODEC_TYPE_VIDEO:

        VAR_1 = VAR_0->width && VAR_0->pix_fmt != PIX_FMT_NONE;

        break;

    default:

        VAR_1 = 1;

        break;

    }

    return (VAR_1 != 0);

}

static int FUNC_0(AVCodecContext *VAR_0)
{ int VAR_1; switch(VAR_0->codec_type) { case CODEC_TYPE_AUDIO:
VAR_1 = VAR_0->sample_rate; break; case CODEC_TYPE_VIDEO:
VAR_1 = VAR_0->width && VAR_0->pix_fmt != PIX_FMT_NONE; break; default:
VAR_1 = 1; break; } return (VAR_1 != 0); }