mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-15 11:17:49 +00:00
Merge commit 'daef7feb09a0dde2265d56f77de8ae03f9612d47' into release/2.4
* commit 'daef7feb09a0dde2265d56f77de8ae03f9612d47': af_resample: check av_opt_set_dict return value Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b400412443
@ -135,11 +135,14 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
if (s->options) {
|
if (s->options) {
|
||||||
|
int ret;
|
||||||
AVDictionaryEntry *e = NULL;
|
AVDictionaryEntry *e = NULL;
|
||||||
while ((e = av_dict_get(s->options, "", e, AV_DICT_IGNORE_SUFFIX)))
|
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_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);
|
av_opt_set_int(s->avr, "in_channel_layout", inlink ->channel_layout, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user