sts = mfxENC->EncodeFrameAsync(NULL, YUVFrame, &mfxBS, &syncp);
So, for some reason I am getting sts returned with a -2, meaning MFX_ERR_NULL_PTR.
YUVFrame is not null and everything has been filled in
mfxBS does have some null parts to it, such as Data, but that's because EncodeFrameAsync is supposed to fill in mfxBS, right?
And syncp is also null but again, it's supposed to be set by EncodeFrameAsync, right?
Any idea why I could be suddenly getting this error, this was working until I changed a couple things, can't remember much changing these parameters though. Thanks.