]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_aresample.c
Merge commit '4e0799a4d04404abfa8fbc072640be76465158cf'
[ffmpeg] / libavfilter / af_aresample.c
index b88c5f8fefb2beefbf883dc1d36960226a1662b5..dbeb0ded7cdf1c744f4ac6599be46b99046c38cc 100644 (file)
@@ -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);