WMF Codec for Audio Encoding using AVCodecsCore and timestamps

Hi everyone. I want to point out to this line of code. It seems that the encoder interface is requesting a timestamp that has no unit, however in the code Timestamp is then multiplied by TickPerSeconds (=10’000’000) which converts into a 100ns timescale used by Windows Media Foundation.
This means that Timestamp parameter is meant to be in seconds, but how can it be an integer value? It’s not possible to express time in seconds, unless only whole seconds of audio data is submitted which feels an unnecessary complication. Feels more like a bug to me.


https://github.com/EpicGames/UnrealEngine/blob/803688920e030c9a86c3659ac986030fba963833/Engine/Plugins/Experimental/AVCodecs/WMFCodecs/Source/WMFCodecs/Private/Audio/Encoders/AudioEncoderWMF.cpp#L153