I have a sample application that creates an rgb24 sample, color converts it to nv12 using the ColorConvert transform, and then writes the sample 1000 times (same sample over and over) to a SinkWriter, to produce a valid h264 encoded mp4 file.
As long as I use a software encoder it works fine, when I enable hardware
swConf->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, TRUE);
it processes to first 3 samples ok, but the 4th sinkWriter->WriteSample() returns MF_E_UNEXPECTED.
Are there any additional steps/flags I have to watch when using hardware transforms?
I have an Windows 7, i7 with Intel QuickSync MFT.