On Thu Aug 24 12:12:53 2023 +0000, Rémi Bernon wrote:
Fwiw I think it's important to have an easy way to reconstruct these. For the AAC codec data, and this was the reason I added the AAC encoder tests, you can get it from the enumerated encoder media types. Maybe it should be shared between `transform.c` and `mf.c`, in `mf_test.h`? For the H264 sequence header, I can't find where it is coming from. Is there a similar way to get it, which does not involve manual extraction from an H264 file? We can maybe have some basic H264 encoder tests if that would allow us to get the magic sequence out of it.
It seems that we can extract the sequence header from output type of h264 encoder, see: https://learn.microsoft.com/en-us/windows/win32/medfound/h-264-video-encoder
Maybe it should be shared between `transform.c` and `mf.c`, in `mf_test.h`?
If I added the h264 encoder tests, which function should be shared between `transform.c` and `mf.c`? Or do you mean that the aac data array and the h264 data array should be shared?