espie 45f2b0c70a fix problems with Nikon D7100 pictures, they don't create correct exif
information (multiple APP1 chunks). xv reads them all, but libjpeg frowns
about writing multiple APP1.

So,
- ignore subsequent chunks (like exiv2 does)
- add a small framework to report error messages from libjpeg
(might be adaptable to other gfx formats).

okay sthen@
2014-10-29 16:45:09 +00:00

14 lines
657 B
Plaintext

$OpenBSD: patch-xv_h,v 1.5 2014/10/29 16:45:09 espie Exp $
--- xv.h.orig Tue Oct 28 14:44:22 2014
+++ xv.h Tue Oct 28 14:45:15 2014
@@ -1689,7 +1689,8 @@ char *GetDirFullName PARM((void));
void SetDirSaveMode PARM((int, int));
int Globify PARM((char *));
FILE *OpenOutFile PARM((const char *));
-int CloseOutFile PARM((FILE *, const char *, int));
+int CloseOutFileWhy PARM((FILE *, const char *, int, const char *));
+#define CloseOutFile(fp, name, fail) CloseOutFileWhy((fp), (name), (fail), NULL)
byte *GenSavePic PARM((int*, int*,int*, int*, int*,
byte**, byte**, byte**));