]> git.sesse.net Git - ffmpeg/commit
avcodec/msrledec: implement vertical offset in 4-bit RLE
authorDaniel Verkamp <daniel@drv.nu>
Tue, 29 Nov 2016 09:54:56 +0000 (10:54 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 29 Nov 2016 09:57:49 +0000 (10:57 +0100)
commite856ac23732822ac04fe5dd959cff94c7249c17e
tree83f8fba3df663828880caaea18fd167a6a4d5936
parent1e7f9b0ec602e98055875139956aecc4c7daa89e
avcodec/msrledec: implement vertical offset in 4-bit RLE

The delta escape (2) is supposed to work the same in 4-bit RLE as in
8-bit RLE.  This is documented in the MSDN Bitmap Compression page:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd183383(v=vs.85).aspx

The unchecked modification of line is safe, since the loop condition
(line >= 0) will check it before any pixel data is written.

Fixes ticket #5153 (output now matches ImageMagick for the provided sample).

Signed-off-by: Daniel Verkamp <daniel@drv.nu>
libavcodec/msrledec.c