Skip to content

Commit

Permalink
Fix previous variableformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Nov 18, 2024
1 parent ef74bdf commit e51c390
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/videosource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/videosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e51c390

Please sign in to comment.