0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

Merge pull request #2110 from derrod/ffmpeg-output-fix

obs-ffmpeg: Use av_opt_set on context instead of priv_data
This commit is contained in:
Jim 2019-10-15 22:21:04 -07:00 committed by jp9000
parent 63c45cb18c
commit 4182bd5bd7

View File

@ -183,7 +183,8 @@ static bool parse_params(AVCodecContext *context, char **opts)
*assign = 0;
value = assign + 1;
if (av_opt_set(context->priv_data, name, value, 0)) {
if (av_opt_set(context, name, value,
AV_OPT_SEARCH_CHILDREN)) {
blog(LOG_WARNING, "Failed to set %s=%s", name,
value);
ret = false;