What does HRESULT 0x88982F63 (WINCODEC_ERR_BADMETADATAHEADER) mean?

 
Previous Next
WINCODEC_ERR_FRAMEMISSING WINCODEC_ERR_BADSTREAMDATA

WINCODEC_ERR_BADMETADATAHEADER

WINCODEC_ERR_BADMETADATAHEADER means that WIC could not recognize the header of an embedded metadata block. The image pixels can still be usable, but metadata such as EXIF, XMP, or format-specific records may be malformed, truncated, or inconsistent with the container.

How to handle it

  • Decide whether metadata is required for the use case; a thumbnail or preview may be acceptable without it.
  • Keep image decode and metadata read errors separate so callers do not misreport a metadata failure as a pixel decode failure.
  • For files produced by your application, validate metadata writers and commit order before publishing output.

Do not repair metadata in place unless the file format and product policy allow a safe rewrite.

Microsoft: WIC metadata overview


Looking for a different code? Search another status or error code.