diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-23 02:24:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-23 02:24:15 +0000 |
commit | f0634683c5ac92acf1d92b80bffb17cfabc57fd4 (patch) | |
tree | 9014d49eabfa1264b6c40bd89fdad3df898c2a74 /apps/graphics/tiff/tiff_finalize.c | |
parent | 29a8e72dcbd595ccc9c8778789ac8a0bcf36e02b (diff) | |
download | px4-nuttx-f0634683c5ac92acf1d92b80bffb17cfabc57fd4.tar.gz px4-nuttx-f0634683c5ac92acf1d92b80bffb17cfabc57fd4.tar.bz2 px4-nuttx-f0634683c5ac92acf1d92b80bffb17cfabc57fd4.zip |
Correct a couple of TIFF bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3972 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/graphics/tiff/tiff_finalize.c')
-rw-r--r-- | apps/graphics/tiff/tiff_finalize.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/graphics/tiff/tiff_finalize.c b/apps/graphics/tiff/tiff_finalize.c index 9526121a5..5c1cbefe5 100644 --- a/apps/graphics/tiff/tiff_finalize.c +++ b/apps/graphics/tiff/tiff_finalize.c @@ -270,7 +270,8 @@ int tiff_finalize(FAR struct tiff_info_s *info) } /* Now read strip offset data from tmpfile1, update the offsets, and write - * the updated offsets to the outfile. + * the updated offsets to the outfile. The strip data will begin at offset + * outsize + tmp1size; */ maxoffsets = info->iosize >> 2; @@ -309,7 +310,7 @@ int tiff_finalize(FAR struct tiff_info_s *info) j++, ptr += 4) { uint32_t stripoff = tiff_get32(ptr); - stripoff += info->outsize; + stripoff += (info->outsize + info->tmp1size); tiff_put32(ptr, stripoff); } |