Skip to content

Commit

Permalink
Fixed doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Feb 23, 2024
1 parent 4a532c7 commit a004703
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lib/tlIO/FFmpegWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,35 @@ namespace tl
{
bool out = false;
if (info.size.w == 720 && info.size.h == 576 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 1280 && info.size.h == 720 &&
math::fuzzyCompare(fps, 25.D))
math::fuzzyCompare(fps, 25.0))
out = true;
else if (info.size.w == 1440 && info.size.h == 1080 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 1920 && info.size.h == 1080 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 2048 && info.size.h == 1536 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 3840 && info.size.h == 2160 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 4096 && info.size.h == 2160 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;
else if (info.size.w == 5120 && info.size.h == 2880 &&
(math::fuzzyCompare(fps, 25.D) ||
math::fuzzyCompare(fps, 50.D)))
(math::fuzzyCompare(fps, 25.0) ||
math::fuzzyCompare(fps, 50.0)))
out = true;

return out;
Expand Down Expand Up @@ -397,7 +397,7 @@ namespace tl
AVFrame* avFrame2 = nullptr;
SwsContext* swsContext = nullptr;
otime::RationalTime videoStartTime = time::invalidTime;
double avSpeed = 24.D;
double avSpeed = 24.0;

// Audio
AVCodecContext* avAudioCodecContext = nullptr;
Expand Down

0 comments on commit a004703

Please sign in to comment.