All of the functions now use double pointers for the fields, like avformat_open_input's AVFormatContext**, this is error prone as requires to manually create field on the stack and then update the field in the class (like in the example).
More robust version could be using ref AVFormatContext* or out AVFormatContext* for such a fields.
I know this might be complicated to check on C side, wether it's a double pointer or output write, but making even a draft version can help a lot.
All of the functions now use double pointers for the fields, like avformat_open_input's
AVFormatContext**, this is error prone as requires to manually create field on the stack and then update the field in the class (like in the example).More robust version could be using
ref AVFormatContext*orout AVFormatContext*for such a fields.I know this might be complicated to check on C side, wether it's a double pointer or output write, but making even a draft version can help a lot.