[evince] tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls
- Date: Sat, 30 Apr 2011 10:17:30 +0000 (UTC)
commit 2f2b0dbbf86b3b0def86c78e27f7e530e4041308
Author: Juanjo MarÃn <juanj marin juntadeandalucia es>
Date: Sat Apr 30 01:33:32 2011 +0200
tiff: Set stopOnError to zero on TIFFReadRGBAImageOriented() calls
This allows overlooking errors and processing malformed tiff files.
Fixes bug #644806.
backend/tiff/tiff-document.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c
index c310b34..ca40397 100644
--- a/backend/tiff/tiff-document.c
+++ b/backend/tiff/tiff-document.c
@@ -293,7 +293,7 @@ tiff_document_render (EvDocument *document,
TIFFReadRGBAImageOriented (tiff_document->tiff,
width, height,
(uint32 *)pixels,
- orientation, 1);
+ orientation, 0);
pop_handlers ();
/* Convert the format returned by libtiff to
@@ -378,7 +378,7 @@ tiff_document_get_thumbnail (EvDocument *document,
TIFFReadRGBAImageOriented (tiff_document->tiff,
width, height,
(uint32 *)pixels,
- ORIENTATION_TOPLEFT, 1);
+ ORIENTATION_TOPLEFT, 0);
pop_handlers ();
scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]