Code from qatar (55c3a4f617) Author of the code was probably Mohamed or Kostya Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
55c3a4f617