summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-17 10:07:11 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-18 16:15:10 +0100
commit0d989dbfc4bc5bc1d563e967449116a7a9865258 (patch)
tree7dc812746e4d3a34278fc71ca4d86017e2876578 /libavfilter
parent6d96c7ea89600655b1f18a3b12f3f041fa714152 (diff)
af_resample: check av_opt_set_dict return value
CC: libav-stable@libav.org Bug-Id: CID 1087076
Diffstat (limited to 'libavfilter')
-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 a59e6f8fd1..fbe61056e3 100644
--- a/libavfilter/af_resample.c
+++ b/libavfilter/af_resample.c
@@ -136,11 +136,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);