AVFilterFormats *ff_make_format_list(const int *fmts)

{

    AVFilterFormats *formats;

    int count;



    for (count = 0; fmts[count] != -1; count++)

        ;



    formats               = av_mallocz(sizeof(*formats));

    if (count)

        formats->formats  = av_malloc(sizeof(*formats->formats) * count);

    formats->nb_formats = count;

    memcpy(formats->formats, fmts, sizeof(*formats->formats) * count);



    return formats;

}

AVFilterFormats *ff_make_format_list(const int *fmts)

{

    AVFilterFormats *formats;

    int count;



    for (count = 0; fmts[count] != -1; count++)

        ;



    formats               = av_mallocz(sizeof(*formats));

    if (count)

        formats->formats  = av_malloc(sizeof(*formats->formats) * count);

    formats->nb_formats = count;

    memcpy(formats->formats, fmts, sizeof(*formats->formats) * count);



    return formats;

}

AVFilterFormats *FUNC_0(const int *fmts)

{

    AVFilterFormats *formats;

    int VAR_0;



    for (VAR_0 = 0; fmts[VAR_0] != -1; VAR_0++)

        ;



    formats               = av_mallocz(sizeof(*formats));

    if (VAR_0)

        formats->formats  = av_malloc(sizeof(*formats->formats) * VAR_0);

    formats->nb_formats = VAR_0;

    memcpy(formats->formats, fmts, sizeof(*formats->formats) * VAR_0);



    return formats;

}

AVFilterFormats *FUNC_0(const int *fmts)
{ AVFilterFormats *formats; int VAR_0; for (VAR_0 = 0; fmts[VAR_0] != -1; VAR_0++) ; formats               = av_mallocz(sizeof(*formats)); if (VAR_0)
formats->formats  = av_malloc(sizeof(*formats->formats) * VAR_0); formats->nb_formats = VAR_0; memcpy(formats->formats, fmts, sizeof(*formats->formats) * VAR_0); return formats; }