mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-04 03:22:07 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user