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
This commit is contained in:
Stefano Sabatini 2009-10-21 20:43:43 +00:00
parent 1554fed2d6
commit 9abba21ad3
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}