applying two separate filtering passes, so implement them explicitly. Originally committed as revision 16190 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 11398 to svn://svn.ffmpeg.org/ffmpeg/trunk