Video encoder crashes on 64 bit system
Submitted by Göran Uddeborg
I built gimp-gap for my 64 bit Fedora 14 system. When trying to encode an animation, I got a window to select various parameters and encodings. But regardless of what I chose, it crashed.
Unless I'm mistaken, the reason is missing includes in libgapvidutil/gap_gve_misc_util.c. This file uses g_fopen(), but it doesn't include its header. Which means it gets default-declared to return int. But it returns a pointer, which is twice as big on 64 bit systems.
I added the lines
#include <glib.h> #include <glib/gstdio.h>
to the top of the file, and recompiled. That seems to have helped, I don't get the crash any more.