| Previous | Next |
| WINCODEC_ERR_PROPERTYNOTSUPPORTED | WINCODEC_ERR_CODECPRESENT |
WINCODEC_ERR_PROPERTYSIZE
WINCODEC_ERR_PROPERTYSIZE means that the size supplied for a bitmap property or metadata value is invalid. It commonly points to a mismatch between a value buffer and the PROPVARIANT type or to an incorrect byte count when a codec expects a fixed-size property.
Diagnosis
- Verify the property's documented
VARTYPE, element count and byte size before calling a metadata writer. - Check structure packing and 32-bit versus 64-bit assumptions when a size is derived from a C or C++ structure.
- For strings and blobs, distinguish character count from byte count and include any required terminating character only when the API expects it.
Log both the property query and the exact type and size passed to the WIC interface.
Microsoft: WIC metadata reading and writing
Looking for a different code? Search another status or error code.