Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/af_resample.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c
index f4b396a452..d65d4bc64a 100644
--- a/libavfilter/af_resample.c
+++ b/libavfilter/af_resample.c
@@ -135,11 +135,14 @@ static int config_output(AVFilterLink *outlink)
return AVERROR(ENOMEM);
if (s->options) {
+ int ret;
AVDictionaryEntry *e = NULL;
while ((e = av_dict_get(s->options, "", e, AV_DICT_IGNORE_SUFFIX)))
av_log(ctx, AV_LOG_VERBOSE, "lavr option: %s=%s\n", e->key, e->value);
- av_opt_set_dict(s->avr, &s->options);
+ ret = av_opt_set_dict(s->avr, &s->options);
+ if (ret < 0)
+ return ret;
}
av_opt_set_int(s->avr, "in_channel_layout", inlink ->channel_layout, 0);