Nam Nguyen writes: > Please find attached libchdr. libchdr is a dependency for > emulators/flycast, which I will send shortly. > > DESCR: > > libchdr is a standalone library for reading MAME's CHDv1-v5 formats. > > The code is based off of MAME's old C codebase which read up to CHDv4 > with OS-dependent features removed, and CHDv5 support backported from > MAME's current C++ codebase. > > OK to import?
The commit history lists some changes we might want: null dereference fix, buffer overrun fix, additional codec. Any reason not to base the port on the latest commit? It would be better to use a lower version number than 1.0, in case they make a release with a version like 0.1 that would necessitate EPOCH. Maybe even just use "0pl20221022"...