From e51c390051fffa6f469c132b4ed7531e72ab3ad4 Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Mon, 18 Nov 2024 22:37:16 +0100 Subject: [PATCH] Fix previous variableformat changes --- src/videosource.cpp | 3 --- src/videosource.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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;