static unsigned int get_video_format_idx(AVCodecContext *avctx)

{

    unsigned int ret_idx = 0;

    unsigned int idx;

    unsigned int num_formats = sizeof(ff_schro_video_format_info) /

                               sizeof(ff_schro_video_format_info[0]);



    for (idx = 1; idx < num_formats; ++idx) {

        const SchroVideoFormatInfo *vf = &ff_schro_video_format_info[idx];

        if (avctx->width  == vf->width &&

            avctx->height == vf->height) {

            ret_idx = idx;

            if (avctx->time_base.den == vf->frame_rate_num &&

                avctx->time_base.num == vf->frame_rate_denom)

                return idx;

        }

    }

    return ret_idx;

}

static unsigned int get_video_format_idx(AVCodecContext *avctx)

{

    unsigned int ret_idx = 0;

    unsigned int idx;

    unsigned int num_formats = sizeof(ff_schro_video_format_info) /

                               sizeof(ff_schro_video_format_info[0]);



    for (idx = 1; idx < num_formats; ++idx) {

        const SchroVideoFormatInfo *vf = &ff_schro_video_format_info[idx];

        if (avctx->width  == vf->width &&

            avctx->height == vf->height) {

            ret_idx = idx;

            if (avctx->time_base.den == vf->frame_rate_num &&

                avctx->time_base.num == vf->frame_rate_denom)

                return idx;

        }

    }

    return ret_idx;

}

static unsigned int get_video_format_idx(AVCodecContext *avctx)     unsigned int ret_idx = 0;     unsigned int idx;     unsigned int num_formats = sizeof(ff_schro_video_format_info) /                                sizeof(ff_schro_video_format_info[0]);     for (idx = 1; idx < num_formats; ++idx) {         const SchroVideoFormatInfo *vf = &ff_schro_video_format_info[idx];         if (avctx->width  == vf->width &&             avctx->height == vf->height) {             ret_idx = idx;             if (avctx->time_base.den == vf->frame_rate_num &&                 avctx->time_base.num == vf->frame_rate_denom)                 return idx;     return ret_idx;
static unsigned int FUNC_0(AVCodecContext *VAR_0)

{

    unsigned int VAR_1 = 0;

    unsigned int VAR_2;

    unsigned int VAR_3 = sizeof(ff_schro_video_format_info) /

                               sizeof(ff_schro_video_format_info[0]);



    for (VAR_2 = 1; VAR_2 < VAR_3; ++VAR_2) {

        const SchroVideoFormatInfo *VAR_4 = &ff_schro_video_format_info[VAR_2];

        if (VAR_0->width  == VAR_4->width &&

            VAR_0->height == VAR_4->height) {

            VAR_1 = VAR_2;

            if (VAR_0->time_base.den == VAR_4->frame_rate_num &&

                VAR_0->time_base.num == VAR_4->frame_rate_denom)

                return VAR_2;

        }

    }

    return VAR_1;

}

static unsigned int FUNC_0(AVCodecContext *VAR_0)
{ unsigned int VAR_1 = 0; unsigned int VAR_2; unsigned int VAR_3 = sizeof(ff_schro_video_format_info) /
sizeof(ff_schro_video_format_info[0]); for (VAR_2 = 1; VAR_2 < VAR_3; ++VAR_2) { const SchroVideoFormatInfo *VAR_4 = &ff_schro_video_format_info[VAR_2]; if (VAR_0->width  == VAR_4->width &&
VAR_0->height == VAR_4->height) { VAR_1 = VAR_2; if (VAR_0->time_base.den == VAR_4->frame_rate_num &&
VAR_0->time_base.num == VAR_4->frame_rate_denom)
return VAR_2; } } return VAR_1; }