601aa3ffb1
When an x264 option doesn't include a "=", it is silently ignored. This is frustrating for users. Log when part of the options string is ignored. Aside from logging, this commit should not change behavior.
20 lines
379 B
C
20 lines
379 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
struct obs_x264_option {
|
|
char *name;
|
|
char *value;
|
|
};
|
|
|
|
struct obs_x264_options {
|
|
size_t count;
|
|
struct obs_x264_option *options;
|
|
size_t ignored_word_count;
|
|
char **ignored_words;
|
|
char **input_words;
|
|
};
|
|
|
|
struct obs_x264_options obs_x264_parse_options(const char *options_string);
|
|
void obs_x264_free_options(struct obs_x264_options options);
|