Signed-off-by: Mans Rullgard <mans@mansr.com>
Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 24797 to svn://svn.ffmpeg.org/ffmpeg/trunk