On Tue Mar 12 18:00:18 2024 +0000, Torge Matthies wrote:
We need to generate the codec data instead of parsing it. Unless we just give gstreamer some constant codec data, and pray that applications don't rely on `MF_MT_USER_DATA` existing, we need this code. It would also encode in a slightly wrong format (the constant one instead of the application-requested one) in that case. If possible I'd like to generate the codec data *somehow*. But if we don't want to use this code and we find no alternative, then I guess we can't.
We can get gstreamer (or rather the plugin gstreamer uses for AAC encoding) to generate the codec data for us by initializing an aac encoding element and setting the sink pad caps. I just need to think a bit about how I want to integrate this into Wine.
Sadly, there's no public function in gstreamer that just generates AAC codec data, even though they have some basic codec data generators in some places that are plugin-internal.