The AVIStreamSetFormat function sets the format of a stream at the specified position.
STDAPI AVIStreamSetFormat(
PAVISTREAM pavi,
LONG lPos,
LPVOID lpFormat,
LONG cbFormat
);
Returns zero if successful or an error otherwise.
The handler for writing AVI files does not accept format changes. Besides setting the initial format for a stream, only changes in the palette of a video stream are allowed in an AVI file. The palette change must occur after any frames already written to the AVI file. Other handlers might impose different restrictions.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Import Library: Use vfw32.lib.
AVIFile Functions and Macros Overview, AVIFile Functions