At this point writing a media file parser in C/C++ is absurdly stupid. The same thing happened with libjxl.
Also libwebp.
Also libwebp.