X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=timebase.h;h=3d335fd3ca9ccec07a4eb628559f178d1079f33a;hb=c015407a3953235df07a601baa6aa8e02ba7b561;hp=be2362b2ef7d376222564ccb81d09fa557aea6b5;hpb=b0709b4804bd61571bb804d52cfa9e34fad14fb6;p=nageru diff --git a/timebase.h b/timebase.h index be2362b..3d335fd 100644 --- a/timebase.h +++ b/timebase.h @@ -14,4 +14,11 @@ // going to 44100000; probably a bit excessive. #define TIMEBASE 60000 +// Some muxes, like MP4 (or at least avformat's implementation of it), +// are not too fond of values above 2^31. At timebase 60000, that's only +// about ten hours or so, so we define a coarser timebase that doesn't +// get 59.94 precisely (so there will be a marginal amount of pts jitter), +// but can do at least 50 and 60 precisely, and months of streaming. +#define COARSE_TIMEBASE 300 + #endif // !defined(_TIMEBASE_H)