(cherry picked from commit ab4061dff796b1dd2bc884101226aab48c2c875e) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>