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:
parent
63c45cb18c
commit
4182bd5bd7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user