* commit '61335ab33e594d47b84fde7367ee10dc66fc3465': opt: check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>