I'm trying to probe a buffer of DHAV containing an H264 video stream. I use the code below to do that :
AVProbeData probeData;
probeData.buf_size = len < 4096 ? len : 4096;
probeData.filename = "stream";
probeData.buf = (unsigned char*)malloc(probeData.buf_size);
memcpy(probeData.buf, lpData, probeData.buf_size);
AVInputFormat* pAVInputFormat = av_probe_input_format(&probeData, 1);
My problem is that I have an Access violation exception during the call to av_probe_input_format. If I change the second argument to 0, I have no error, but the Format is not found. Any idea? I use an FFMpeg version compiled through vcpkg.