Nikolay Sivov (@nsivov) commented about dlls/mfmediaengine/main.c:
if (SUCCEEDED(IMFPresentationDescriptor_GetUINT64(pd, &MF_PD_DURATION, &duration))) { /* Convert 100ns to seconds. */
engine->duration = duration / 10000000;
engine->duration = (double)duration / 1e7;
We already have the same expression in media_engine_GetCurrentTime(), I think we can reuse that with a helper. I don't find 1e7 easier to read in this case.