BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
694 stars 284 forks source link

BadImageFormatExeption #112

Closed CaptianFluffy100 closed 2 years ago

CaptianFluffy100 commented 2 years ago

Whenever I run my application, I get a BadImageFormatExeption error in the FFmpegVideoDecoder.cs script when ever it tries to create the video decoder.

int resultCode = FFmpegVideoPInvoke.CreateVideoDecoder(videoCodecId, out IntPtr decoderPtr); This is where the error is, and resultCode is 0 when it returns. videoCodecId is H264.

DecoderError

I am on Windows 10

CaptianFluffy100 commented 2 years ago

Fixed the issue. I don't know how I did it. Must be code/computer/black magic.