]> git.sesse.net Git - ffmpeg/commit
lavc/tiff: Fix edge case with full-length/width tiles
authorNick Renieris <velocityra@gmail.com>
Thu, 29 Aug 2019 13:10:45 +0000 (16:10 +0300)
committerPaul B Mahol <onemda@gmail.com>
Mon, 2 Sep 2019 07:26:52 +0000 (09:26 +0200)
commitf98a8666de6cdd8426e0ddf0272322498225467d
tree780e3cb7acb738d434486432b38eb8784122e009
parent03f95403eb1105be50a983ef8dd135927d39f407
lavc/tiff: Fix edge case with full-length/width tiles

When the height is equal to the tile length (full-height tile)
after `height % tile_length` is applied with the current code,
it results in the operating tile_length to be 0.  This commit
makes this leftover logic only applies if it's necessary.

Signed-off-by: Nick Renieris <velocityra@gmail.com>
libavcodec/tiff.c