tiffenc: fix packet size calculation

Signed-off-by: Anton Khirnov <anton@khirnov.net>