From af5fd2a58f8bd2284a67e8fe963f3ab82ff8c8f9 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Sun, 9 Dec 2001 05:12:44 +0000 Subject: [PATCH] Remove skipping over first 16 bytes (digita-ism) git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3470 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/gphoto2-file.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c index 65e72d70c..26e19631b 100644 --- a/libgphoto2/gphoto2-file.c +++ b/libgphoto2/gphoto2-file.c @@ -607,11 +607,9 @@ gp_file_conversion_johannes (CameraFile *file, unsigned char *data) unsigned char *ps; int x, y; - /* Skip over the thumbnail header */ - ps = file->data + 16; - for (y = 0; y < file->height; y++) { - char *pd = data + (file->width * y * 3); + char *pd = data + (file->width * y * 3); + for (x = 0; x < file->width / 2; x++) { int _y, u, y1, v, r, g, b;