4fbd52f0b8
This gets rid of some recursion and simplifies the code. Originally committed as revision 9255 to svn://svn.ffmpeg.org/ffmpeg/trunk