Re: NS_E_INVALID_DATA (C00D002F) on WriteSample or EndWriting

Tech-Archive recommends: Speed Up your PC by fixing your registry



Brandon Bloom wrote:
Good call! I was not doing that. But the same issue occurs now that I do.

I was bit by this when I started with the SDK <g>

Unfortunately, I am still seeing the exact same failure and error code.

Some kind of data validation is failing. Make sure your image size is calculated properly (taking into account the DWORD rounding up ).


If you are sure all your values are correct, you could try stepping into the WriteSample() code and see where the error is returned. It's not quick or easy, but you should be able to find that spot and figure out what kind of data the code is validating.

..a

p.s. I had to do this when developing code that writes custom-compressed video samples. The docs talked about using a new GUID. They failed to mention that the first DWORD (FOURCC, basically) is the new one. The rest of the GUID had to be known to the WMF.

That's the GUID.
{ 0x00000000, 0x0000, 0x0010, { 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 } } ;
.