Merge "libmedia: add NULL check before accessing source and destination buffers."