Hello,
I've discovered this gem a few days ago and I've been trying to use it in one of our projects. I've run into the following problems to make it work :
One thing that is not critical is when you look at the to_ppm method in ffmpeg_frame.c, the generated header is not correct, there is an x between the width and height, it should'nt be there.
http://netpbm.sourceforge.net/doc/ppm.html
One other thing is that this header gets funny from time to time, I noticed that one one of my servers running ubuntu. This is caused by the use of strcat instead of strcpy.
When you malloc your memory space, sometimes it already contains some remaining data in it so when you concatenate the header, it's concatenated to the existing data in the memory, therefore your header does not start on the very first block.
So either you use a method that get sure the allocated memory is empty or you can use strcpy instead that overwrites the existing data in the allocated memory. That way you are always sure that the header starts on the very first block of the allocated memory.
I'm not a C developer but from what I know and what I understood it is what caused my problem.
Here's a gist that include those two issues.
http://gist.github.com/191148
Otherwise this is a great gem, it helped me a lot.
Thanks
Marc
fixed. thx