[FFmpeg-cvslog] avconv: improve some variable names
Anton Khirnov
git at videolan.org
Mon Aug 5 09:37:57 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Jun 14 18:12:23 2013 +0200| [51fc88e7467169031b20b9983d80456b893a9fa3] | committer: Anton Khirnov
avconv: improve some variable names
'filter' is too generic, since the functions in question deal with
several filters.
Also add const qualifiers to those variables.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51fc88e7467169031b20b9983d80456b893a9fa3
---
avconv_filter.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/avconv_filter.c b/avconv_filter.c
index da8949c..da55d3c 100644
--- a/avconv_filter.c
+++ b/avconv_filter.c
@@ -413,7 +413,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
AVFilterInOut *in)
{
AVFilterContext *first_filter = in->filter_ctx;
- AVFilter *filter = avfilter_get_by_name("buffer");
+ const AVFilter *buffer_filt = avfilter_get_by_name("buffer");
InputStream *ist = ifilter->ist;
AVRational tb = ist->framerate.num ? av_inv_q(ist->framerate) :
ist->st->time_base;
@@ -431,7 +431,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index,
ist->file_index, ist->st->index);
- if ((ret = avfilter_graph_create_filter(&ifilter->filter, filter, name,
+ if ((ret = avfilter_graph_create_filter(&ifilter->filter, buffer_filt, name,
args, NULL, fg->graph)) < 0)
return ret;
@@ -462,7 +462,7 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter,
AVFilterInOut *in)
{
AVFilterContext *first_filter = in->filter_ctx;
- AVFilter *filter = avfilter_get_by_name("abuffer");
+ const AVFilter *abuffer_filt = avfilter_get_by_name("abuffer");
InputStream *ist = ifilter->ist;
int pad_idx = in->pad_idx;
char args[255], name[255];
@@ -477,7 +477,7 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter,
snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index,
ist->file_index, ist->st->index);
- if ((ret = avfilter_graph_create_filter(&ifilter->filter, filter,
+ if ((ret = avfilter_graph_create_filter(&ifilter->filter, abuffer_filt,
name, args, NULL,
fg->graph)) < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list