fix(encoder): fix a bug that causes the wrong encoder to be selected

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2025-01-20 00:00:00 +00:00
parent eae89cea4b
commit 947788225e
4 changed files with 19 additions and 20 deletions

View File

@@ -10,15 +10,13 @@ extern "C" {
#include <libavutil/pixdesc.h>
}
#include "fsutils.h"
namespace video2x {
namespace encoder {
// Encoder configurations
struct EncoderConfig {
// Non-AVCodecContext options
AVCodecID codec = AV_CODEC_ID_NONE;
std::string codec = "libx264";
bool copy_streams = true;
// Basic video options
@@ -45,7 +43,7 @@ struct EncoderConfig {
int delay = -1;
// Extra AVOptions
std::vector<std::pair<fsutils::StringType, fsutils::StringType>> extra_opts;
std::vector<std::pair<std::string, std::string>> extra_opts;
};
class Encoder {