> And good comments everywhere. That's from Ffmpeg header files comment :D , it's preferable to refer the c header file directly as the header also written with documentation there.
> and sometimes there are misspelled variable ... This very likely because of `:%s/_t//g` :P , I'll fix whenever I find them. > Did you type that up by hand? Nah, I only edited from source after c2nim to make sure it's working. For several examples the binding works fine. But I'll try many more examples to make sure it's ok. > Also, the avfilter is missing there partly Will add after learning more about Ffmpeg and its APIs. TBH, I'm noob about AV-thingy here so tried to make the binding to familiarize myself with the APIs. > That seems to be the RIGHT answer. It is a pointer to an array of pointers to > the elements. Unfortunately, my bindings are still wrong and the result = nil > ... Somewhere I still have a mistake in my bindings. **tldr; Edit the source after converted using c2nim to use ``importc`` and ``header`` pragma** This was the exact case when I converted avcodec.h, avformat.h etc using c2nim. At first, I didn't use header pragma to point which header file it should be referred and when debugging it, it's always return nil (or when testing with isNil is false but crash when dereferencing the pointer). So I changed to pragma to properly point which header file and it worked ok. Even when debugging the struct name appeared too.
