VideoWriter produces file with unneeded bytes at the end of file
I create a video file using the VideoWriter class on Windows 7. It is using Lagarith Lossless Video Codec. It creates the file just fine but when I open VLC to see the video I get
Because this AVI file index is broken or missing, seeking will not work correctly
Also, when I open the AVI file in GSpot, I get
Note: 378 bytes unneeded bytes at end of file
AVI v1.0
Is that normal, or how can I produce a video file that doesn't have unneeded bytes and has AVI file index?