From 9abba21ad3474ff5c49dd5cf17facc8330386a95 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 21 Oct 2009 20:43:43 +0000 Subject: 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 --- libavfilter/formats.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavfilter/formats.c') diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 1e9afc7dd9..8747bb6fff 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -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; } -- cgit v1.2.3