suppressed memory leaks - added image conversion support if the codec does not support YUV420P - added raw output (any comments are welcome to simplify the API)

Originally committed as revision 2072 to svn://svn.ffmpeg.org/ffmpeg/trunk
