intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

jpegd: attempt to decode images even if EOI is missing #801

Closed uartie closed 6 years ago

uartie commented 6 years ago

By standard, a missing EOI technically means the image is corrupt. However, there are many images in the wild where a missing EOI is the only corruption to the image (i.e. the entropy-coded data and headers are still intact). This can happen, for example, when the image was encoded by a buggy application that forgets to append the EOI to the final image. If a missing EOI is the only issue, then decoders can still successfully decode it. However, a missing EOI does not necessarily mean the rest of the image is intact. That is, there is no guarantee that the final decoded output will produce the desired result. Either way, we insert a fake EOI marker here to give decoders a chance to decode the image.

VIZ-8219

Signed-off-by: U. Artie Eoff ullysses.a.eoff@intel.com

xuguangxin commented 6 years ago

thanks U.Artie