[FFmpeg-cvslog] avfilter/vf_scale+aresample: minor simpification

Michael Niedermayer git at videolan.org
Fri Aug 16 05:11:18 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 16 04:25:39 2013 +0200| [ec0e0eb4c16f1ac1b0c0bb5fe34a34ebab0b3749] | committer: Michael Niedermayer

avfilter/vf_scale+aresample: minor simpification

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/af_aresample.c |    4 +---
 libavfilter/vf_scale.c     |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index b88c5f8..dbeb0de 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -59,9 +59,7 @@ static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
         AVDictionaryEntry *e = NULL;
 
         while ((e = av_dict_get(*opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
-            const char *token = e->key;
-            const char *value = e->value;
-            if ((ret = av_opt_set(aresample->swr, token, value, 0)) < 0)
+            if ((ret = av_opt_set(aresample->swr, e->key, e->value, 0)) < 0)
                 goto end;
         }
         av_dict_free(opts);
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index c8ceedf..d764d21 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -333,9 +333,7 @@ static int config_props(AVFilterLink *outlink)
                 AVDictionaryEntry *e = NULL;
 
                 while ((e = av_dict_get(scale->opts, "", e, AV_DICT_IGNORE_SUFFIX))) {
-                    const char *token = e->key;
-                    const char *value = e->value;
-                    if ((ret = av_opt_set(*s, token, value, 0)) < 0)
+                    if ((ret = av_opt_set(*s, e->key, e->value, 0)) < 0)
                         return ret;
                 }
             }



More information about the ffmpeg-cvslog mailing list