Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 04973f8082c5a822112d2e42d535b7f3f59dccc0)
Originally committed as revision 21407 to svn://svn.ffmpeg.org/ffmpeg/trunk