diff --git a/src/core/outputsettings.cpp b/src/core/outputsettings.cpp index b41ec3565..7b549585a 100644 --- a/src/core/outputsettings.cpp +++ b/src/core/outputsettings.cpp @@ -118,6 +118,7 @@ void OutputSettings::write(eWriteStream &dst) const dst.write(&fVideoPixelFormat, sizeof(AVPixelFormat)); dst << fVideoBitrate; dst << fVideoProfile; + dst << fVideoOptions; dst << fAudioEnabled; dst << (fAudioCodec ? fAudioCodec->id : -1); @@ -142,6 +143,9 @@ void OutputSettings::read(eReadStream &src) if (src.evFileVersion() >= EvFormat::codecProfile) { src >> fVideoProfile; } + if (src.evFileVersion() >= EvFormat::formatOptions) { + src >> fVideoOptions; + } src >> fAudioEnabled; int audioCodecId; src >> audioCodecId; diff --git a/src/core/outputsettings.h b/src/core/outputsettings.h index 68bf431fc..e51657159 100644 --- a/src/core/outputsettings.h +++ b/src/core/outputsettings.h @@ -29,6 +29,7 @@ #include "Private/esettings.h" #include "smartPointers/ememory.h" #include "ReadWrite/basicreadwrite.h" +#include "formatoptions.h" extern "C" { #include @@ -56,6 +57,7 @@ struct CORE_EXPORT OutputSettings AVPixelFormat fVideoPixelFormat = AV_PIX_FMT_NONE; int fVideoBitrate = 0; int fVideoProfile = FF_PROFILE_UNKNOWN; + FormatOptions fVideoOptions; bool fAudioEnabled = false; const AVCodec *fAudioCodec = nullptr;