static void choose_sample_fmt(AVStream *st, AVCodec *codec)

{

    if (codec && codec->sample_fmts) {

        const enum AVSampleFormat *p = codec->sample_fmts;

        for (; *p != -1; p++) {

            if (*p == st->codec->sample_fmt)

                break;

        }

        if (*p == -1) {

            av_log(NULL, AV_LOG_WARNING,

                   "Incompatible sample format '%s' for codec '%s', auto-selecting format '%s'\n",

                   av_get_sample_fmt_name(st->codec->sample_fmt),

                   codec->name,

                   av_get_sample_fmt_name(codec->sample_fmts[0]));

            st->codec->sample_fmt = codec->sample_fmts[0];

        }

    }

}

static void choose_sample_fmt(AVStream *st, AVCodec *codec)

{

    if (codec && codec->sample_fmts) {

        const enum AVSampleFormat *p = codec->sample_fmts;

        for (; *p != -1; p++) {

            if (*p == st->codec->sample_fmt)

                break;

        }

        if (*p == -1) {

            av_log(NULL, AV_LOG_WARNING,

                   "Incompatible sample format '%s' for codec '%s', auto-selecting format '%s'\n",

                   av_get_sample_fmt_name(st->codec->sample_fmt),

                   codec->name,

                   av_get_sample_fmt_name(codec->sample_fmts[0]));

            st->codec->sample_fmt = codec->sample_fmts[0];

        }

    }

}

static void choose_sample_fmt(AVStream *st, AVCodec *codec)     if (codec && codec->sample_fmts) {         const enum AVSampleFormat *p = codec->sample_fmts;         for (; *p != -1; p++) {             if (*p == st->codec->sample_fmt)                 break;         if (*p == -1) {             av_log(NULL, AV_LOG_WARNING,                    "Incompatible sample format '%s' for codec '%s', auto-selecting format '%s'\n",                    av_get_sample_fmt_name(st->codec->sample_fmt),                    codec->name,                    av_get_sample_fmt_name(codec->sample_fmts[0]));             st->codec->sample_fmt = codec->sample_fmts[0];                 break;                 break;
static void FUNC_0(AVStream *VAR_0, AVCodec *VAR_1)

{

    if (VAR_1 && VAR_1->sample_fmts) {

        const enum AVSampleFormat *VAR_2 = VAR_1->sample_fmts;

        for (; *VAR_2 != -1; VAR_2++) {

            if (*VAR_2 == VAR_0->VAR_1->sample_fmt)

                break;

        }

        if (*VAR_2 == -1) {

            av_log(NULL, AV_LOG_WARNING,

                   "Incompatible sample format '%s' for VAR_1 '%s', auto-selecting format '%s'\n",

                   av_get_sample_fmt_name(VAR_0->VAR_1->sample_fmt),

                   VAR_1->name,

                   av_get_sample_fmt_name(VAR_1->sample_fmts[0]));

            VAR_0->VAR_1->sample_fmt = VAR_1->sample_fmts[0];

        }

    }

}

static void FUNC_0(AVStream *VAR_0, AVCodec *VAR_1)
{ if (VAR_1 && VAR_1->sample_fmts) { const enum AVSampleFormat *VAR_2 = VAR_1->sample_fmts; for (; *VAR_2 != -1; VAR_2++) { if (*VAR_2 == VAR_0->VAR_1->sample_fmt)
break; } if (*VAR_2 == -1) { av_log(NULL, AV_LOG_WARNING,
"Incompatible sample format '%s' for VAR_1 '%s', auto-selecting format '%s'\n",
av_get_sample_fmt_name(VAR_0->VAR_1->sample_fmt),
VAR_1->name,
av_get_sample_fmt_name(VAR_1->sample_fmts[0])); VAR_0->VAR_1->sample_fmt = VAR_1->sample_fmts[0]; } } }