1
2
3
4
|
Don't read the whole file into a buffer. Get the file descriptor, and at each
step in gif_decode, fread(3) or fgetc(3) from the stream. This way we can also
use the information provided in GIFs such as the length of a data section, to
process more efficiently.
|