Skip to content

Commit

Permalink
Fix mostly harmless msvc analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Aug 23, 2024
1 parent 77b8084 commit 4f64f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/vapoursynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ static void BSInit() {
struct BestVideoSourceData {
VSVideoInfo VI = {};
std::unique_ptr<BestVideoSource> V;
int64_t FPSNum;
int64_t FPSDen;
bool RFF;
int64_t FPSNum = -1;
int64_t FPSDen = -1;
bool RFF = false;
};

static const VSFrame *VS_CC BestVideoSourceGetFrame(int n, int ActivationReason, void *InstanceData, void **, VSFrameContext *FrameCtx, VSCore *Core, const VSAPI *vsapi) {
Expand Down
2 changes: 1 addition & 1 deletion src/videosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class BestVideoSource {
};
private:
struct VideoTrackIndex {
int64_t LastFrameDuration;
int64_t LastFrameDuration = 0;
std::vector<FrameInfo> Frames;
};

Expand Down

0 comments on commit 4f64f79

Please sign in to comment.