comparison src/format_canon.c @ 442:4b2d7f9af171

Big whitespaces cleanup: - drop whitespaces at end of lines - convert eight spaces to tab at start of lines - drop spurious spaces mixed with tabs - remove empty lines at end of files
author zas_
date Sun, 20 Apr 2008 13:04:57 +0000
parents 9995c5fb202a
children 48c8e49b571c
comparison
equal deleted inserted replaced
441:08eb7137cd94 442:4b2d7f9af171
7 * This software comes with no warranty of any kind, use at your own risk! 7 * This software comes with no warranty of any kind, use at your own risk!
8 * 8 *
9 * 9 *
10 * Code to add support for Canon CR2 and CRW files, version 0.2 10 * Code to add support for Canon CR2 and CRW files, version 0.2
11 * 11 *
12 * Developed by Daniel M. German, dmgerman at uvic.ca 12 * Developed by Daniel M. German, dmgerman at uvic.ca
13 * 13 *
14 * you can find the sources for this patch at http://turingmachine.org/~dmg/libdcraw/gqview/ 14 * you can find the sources for this patch at http://turingmachine.org/~dmg/libdcraw/gqview/
15 * 15 *
16 */ 16 */
17 17
216 if (record_type == 0x2007) 216 if (record_type == 0x2007)
217 { 217 {
218 guint jpeg_offset; 218 guint jpeg_offset;
219 219
220 jpeg_offset = block_offset + record_offset; 220 jpeg_offset = block_offset + record_offset;
221 if (len < jpeg_offset + record_length || 221 if (len < jpeg_offset + record_length ||
222 record_length < 4 || 222 record_length < 4 ||
223 memcmp(data + jpeg_offset, "\xff\xd8\xff\xdb", 4) != 0) 223 memcmp(data + jpeg_offset, "\xff\xd8\xff\xdb", 4) != 0)
224 { 224 {
225 return FALSE; 225 return FALSE;
226 } 226 }
628 628
629 return TRUE; 629 return TRUE;
630 } 630 }
631 631
632 632
633 #endif 633 #endif
634 /* not HAVE_EXIV2 */ 634 /* not HAVE_EXIV2 */