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 GitHub

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;