| Previous | Next |
| WINCODEC_ERR_PALETTEUNAVAILABLE | WINCODEC_ERR_INTERNALERROR |
WINCODEC_ERR_CODECTOOMANYSCANLINES
WINCODEC_ERR_CODECTOOMANYSCANLINES means that the caller requested more scanlines than the selected WIC codec can provide for the current image or operation. The usual cause is a height, rectangle, stride, or incremental decode calculation that exceeds the decoded frame bounds.
What to inspect
- Obtain the frame size from WIC and validate the requested top row and row count against it.
- When calculating a destination buffer, keep row count, stride and byte size separate; a correct buffer size does not make an out-of-range source rectangle valid.
- For progressive or region-based processing, ensure that each request advances within the codec's supported range.
Log the source dimensions and requested rectangle in addition to the HRESULT.
Looking for a different code? Search another status or error code.