[FFmpeg-cvslog] avfiltergraph: remove a redundant call to avfilter_get_by_name().

Anton Khirnov git at videolan.org
Wed Jun 13 23:02:29 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jun 13 10:12:08 2012 +0200| [24b2f4ed21e463a4bd3beec16f2bdef4a15241c1] | committer: Anton Khirnov

avfiltergraph: remove a redundant call to avfilter_get_by_name().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24b2f4ed21e463a4bd3beec16f2bdef4a15241c1
---

 libavfilter/avfiltergraph.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 0a863e5..3d463a8 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -236,8 +236,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
 
                     snprintf(inst_name, sizeof(inst_name), "auto-inserted resampler %d",
                              resampler_count++);
-                    if ((ret = avfilter_graph_create_filter(&convert,
-                                                            avfilter_get_by_name("resample"),
+                    if ((ret = avfilter_graph_create_filter(&convert, filter,
                                                             inst_name, NULL, NULL, graph)) < 0)
                         return ret;
                     break;



More information about the ffmpeg-cvslog mailing list