thorfdbg / libjpeg

A complete implementation of 10918-1 (JPEG) coming from jpeg.org (the ISO group) with extensions for HDR, lossless and alpha channel coding standardized as ISO/IEC 18477 (JPEG XT).
327 stars 81 forks source link

Assertion fail in upsamplerbase.cpp:305 #40

Closed seviezhou closed 4 years ago

seviezhou commented 4 years ago

System info

Ubuntu x86_64, gcc (Ubuntu 5.5.0-12ubuntu1), jpeg (latest master e52406)

Command line

./jpeg -oz -h -s 1x1,2x2,2x2 @@ /dev/null

Output

jpeg: upsamplerbase.cpp:305: void UpsamplerBase::DefineRegion(LONG, LONG, const LONG*): Assertion `by >= m_lY && by < m_lY + m_lHeight' failed.
Aborted

POC

assert-fail-DefineRegion-upsamplerbase-305.zip

thorfdbg commented 4 years ago

Partially a problem in the ac lossless scan. Fixed.