I'm using WMWriterAdvanced and WriteStreamSample function for writing video data to ASF file and if there is a power failure during writing samples it cause that I lost about last 20 seconds that has been already written to this file. After inspecting file with ASFView I noticed that last 500 packets are just filled with zero bytes. I understand that during power failure its possible to lose some data, but it seems that 20 sec of video is too much.
Why does already written samples are corrupted and is it possible to decrease its amount?