patch by Gildas Bazin, gbazin $$@$$ altern $$.$$ org Originally committed as revision 4892 to svn://svn.ffmpeg.org/ffmpeg/trunk