This should fix debug 2048 amongth other things Signed-off-by: Michael Niedermayer <michaelni@gmx.at>