Skip to content

jpegdec: don't overwrite the last valid line

Michael Olbrich requested to merge mol/gst-plugins-good:jpeg-overwrite into master

If the the height is not a multiple of the macro block size then the memory of the last line is reused for all extra lines. This is no problem if the last line is duplicated properly. However, if the extra lines are not initialized properly during encoding, then the last visible line is overwritten with undefined data. Use a extra buffer to avoid this problem.

Merge request reports