* library.c: bug in compressed photo routine fixed, found by Cedric Cell

ier.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8009 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Theodore Kilgore
2005-05-18 19:01:57 +00:00
parent 086d371068
commit 84a2049855
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2005-05-18 Theodore Kilgore <kilgota@auburn.edu>
* library.c: bug in compressed photo routine fixed, found by Cedric Cellier.
2005-04-17 Theodore Kilgore <kilgota@auburn.edu>
* ChangeLog: Fixed some typos.

View File

@@ -356,12 +356,13 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
"# CREATOR: gphoto2, SQ905 library\n"
"%d %d\n"
"255\n", w, h);
ptr = ppm + strlen (ppm);
size = strlen (ppm);
ptr = ppm + size;
if (comp_ratio>1) {
sq_decompress (camera->pl->model, ptr, frame_data, w, h, entry);
sq_postprocess(camera->pl,w, h, ptr, entry);
}
size = strlen (ppm) + (w * h * 3);
size = size + (w * h * 3);
GP_DEBUG ("size = %i\n", size);
if ( comp_ratio == 1) {