can't add audio stream to MP4 file using sinkwriter from Media Foundation
问题 It's been a week since I'm trying to make my encoder works... So the things is: I create a file using the Sink Writer from MF. I write all my video sample. --> (If I stop there and call the Finish methods, I'm able to read the file using VLC but if I do the bellow stuff, the file will be "corrupted") I write all my audio sample. I call the finish function and I get a HRESULT code saying: "Sink could not create valid output file because required headers were not provided to the sink". I