Why does this code throws an MarshalDirectiveException
?
Obs: I am using ffmpeg-Sharp
Cannot marshal 'return value': Pointers cannot reference marshaled structures. Use ByRef instead.
class Program
{
unsafe static void Main(string[] args)
{
AVCodecContext* ctx =
FFmpeg.avcodec_alloc_context();
}
}