diff --git a/src/videosource.cpp b/src/videosource.cpp index a8174dc..744b769 100644 --- a/src/videosource.cpp +++ b/src/videosource.cpp @@ -1541,7 +1541,6 @@ bool BestVideoSource::WriteVideoTrackIndex(bool AbsolutePath, const std::filesys WriteBSHeader(F, true); WriteInt64(F, FileSize); WriteInt(F, VideoTrack); - WriteInt(F, VariableFormat); WriteString(F, HWDevice); WriteInt(F, ExtraHWFrames); @@ -1624,8 +1623,6 @@ bool BestVideoSource::ReadVideoTrackIndex(bool AbsolutePath, const std::filesyst return false; if (!ReadCompareInt(F, VideoTrack)) return false; - if (!ReadCompareInt(F, VariableFormat)) - return false; if (!ReadCompareString(F, HWDevice)) return false; if (!ReadCompareInt(F, ExtraHWFrames)) diff --git a/src/videosource.h b/src/videosource.h index 441ae9e..6dec657 100644 --- a/src/videosource.h +++ b/src/videosource.h @@ -272,7 +272,7 @@ class BestVideoSource { std::string HWDevice; int ExtraHWFrames; int VideoTrack; - int VariableFormat; + int VariableFormat = -1; int Threads; bool LinearMode = false; uint64_t DecoderSequenceNum = 0;