X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Ftimebase.h;h=ba20d7f21d87da5b132fda6ff2eb6b0f1b03cf7f;hb=daa601df8dc1ba38d8e6c04c7dc36f3f297cabf5;hp=532ec86395c4fa08f08d53dbcc12daa7093ba127;hpb=af8007aa958271ba16b15e7d11a891570488f6c9;p=nageru diff --git a/shared/timebase.h b/shared/timebase.h index 532ec86..ba20d7f 100644 --- a/shared/timebase.h +++ b/shared/timebase.h @@ -3,6 +3,8 @@ #include +#include + // Common timebase that allows us to represent one frame exactly in all the // relevant frame rates: // @@ -15,7 +17,7 @@ // If we also wanted to represent one sample at 48000 Hz, we'd need // to go to 300000. Also supporting one sample at 44100 Hz would mean // going to 44100000; probably a bit excessive. -#define TIMEBASE 120000 +constexpr uint64_t TIMEBASE = 120000; // Some muxes, like MP4 (or at least avformat's implementation of it), // are not too fond of values above 2^31. At timebase 120000, that's only