Commit 9abba21a authored by Stefano Sabatini's avatar Stefano Sabatini

Cosmetics: prefer "pix_fmts" over "pix_fmt" for the name of the

argument of avfilter_make_format_list(), as the argument represents a
list of elements.

Originally committed as revision 20341 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1554fed2
......@@ -176,7 +176,7 @@ struct AVFilterFormats
* @param pix_fmt list of pixel formats, terminated by PIX_FMT_NONE
* @return the format list, with no existing references
*/
AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmt);
AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmts);
/**
* Returns a list of all colorspaces supported by FFmpeg.
......
......@@ -69,18 +69,18 @@ AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b)
return ret;
}
AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmt)
AVFilterFormats *avfilter_make_format_list(const enum PixelFormat *pix_fmts)
{
AVFilterFormats *formats;
int count;
for (count = 0; pix_fmt[count] != PIX_FMT_NONE; count++)
for (count = 0; pix_fmts[count] != PIX_FMT_NONE; count++)
;
formats = av_mallocz(sizeof(AVFilterFormats));
formats->formats = av_malloc(sizeof(*formats->formats) * count);
formats->format_count = count;
memcpy(formats->formats, pix_fmt, sizeof(*formats->formats) * count);
memcpy(formats->formats, pix_fmts, sizeof(*formats->formats) * count);
return formats;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment