Closed dev-masih closed 3 years ago
i tried this again with dotnet framework 4.7 and still get the crash
i managed to narrow it down
crash happens when in function AVFrameToBitmap
, library calls ffmpeg.sws_scale
function in FFmpeg.AutoGen
library. First call to this function is successful but after that it cases the crash
I'm trying to get data from frames after one or two attempts the program will crash with access violation message. this sample code will crash for me all the time after just one loop.
it's not just getting
PixelFormat
it can happen with gettingImageSize
or evenData
, is this the library issue? funny thing is the first loop won't get any error and return the correct data but the moment you get another data from the frame it will crash the console output isI'm using dotnet core 3.1 and avcodec-58.dll, avformat-58.dll, avutil-56.dll, swresample-3.dll, swscale-5.dll 64bit libraries on the latest version of FFMediaToolkit nugget and latest visual studio