7 Aug
2023
7 Aug
'23
11:53 p.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3510#note_41546